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