$:.unshift( "../lib" ); require "graphviz" graph = GraphViz.new( :G, :type => :digraph ) node1 = graph.add_nodes("hello:world", "shape" => "record", "label" => "| 1|" ) node2 = graph.add_nodes("2", "shape" => "record", "label" => "| 2|" ) graph.add_edges( {node1 => :left}, node2 ) graph.add_edges( {node2 => :right}, node1 ) puts graph.output( :none => String, :png => "#{$0}.png" )