6
GraphViz.digraph( :G ) { |g|
7
g[:truecolor => true, :bgcolor => "transparent", :rankdir => "LR"]
13
:label => '# mygraph.dot\ldigraph G {\l Hello -> World\l}\l',
15
:fontname => "Courier",
18
c.image[ :label => "", :shape => "note", :image => "./hello.png"]
23
c.mysite[:label => "\nexample.com\n ", :shape => "component", :fontname => "Arial"]
24
c.dotgraph[:label => "\ndotgraph.net\n ", :shape => "component", :fontname => "Arial"]
29
:label => "my_page.html",
30
:fontname => "Courier",
34
c.zeimage[:label => "", :shape => "note", :image => "./hello.png"]
37
(c1.mygraph << c2.mysite)[:color => "blue"]
38
(c2.dotgraph << c1.image)[:color => "red"]
39
(c2.dotgraph << c2.mysite)[:color => "red"]
40
(c2.mysite << c2.dotgraph)[:color => "blue"]
41
(c1.image << c2.dotgraph)[:color => "red"]
42
(c2.mysite << g.cluster_0.zeimage)[:color => "red"]
43
}.output( :png => "#{$0}.png", :none => "#{$0}.gv" )