$:.unshift( "../lib" ); require "graphviz" g = GraphViz::new( "structs" ) g.node["shape"] = "plaintext" g.add_nodes( "HTML" ) g.add_nodes( "struct1", "label" => '<
left mid dle right
>' ) g.add_nodes( "struct2", "label" => '<
onetwo
>' ) g.add_nodes( "struct3", "label" => '<
hello
world
b g h
cde
f
>' ) g.add_edges( {"struct1" => :f1}, {"struct2" => :f0} ) g.add_edges( {"struct1" => :f2}, {"struct3" => :here} ) g.add_edges( "HTML", "struct1" ) g.output( :path => ARGV[0], :png => "#{$0}.png" )