$:.unshift( "../lib" ); require "graphviz" g = GraphViz::new( "structs", :output => "png" ) g.node["shape"] = "plaintext" g.add_node( "HTML" ) g.add_node( "struct1", "html" => '
leftmid dleright
>]; struct2 [label=<
onetwo
') 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/', :file => "#{$0}.png" )