examples/p2p.rb in ruby-graphviz-0.9.1 vs examples/p2p.rb in ruby-graphviz-0.9.2
- old
+ new
@@ -3,13 +3,13 @@
$:.unshift( "../lib" );
require "graphviz"
g = nil
if ARGV[0]
- g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0], :use => "circo" )
+ g = GraphViz::new( "G", "path" => ARGV[0], :use => "circo" )
else
- g = GraphViz::new( "G", "output" => "png" )
+ g = GraphViz::new( "G" )
end
c0 = g.add_graph( "cluster0" )
c0["label"] = "Environnement de Brad !"
c0["style"] = "filled"
@@ -30,6 +30,6 @@
g.add_edge( jv, aj ) # est le pere de
g.add_edge( bp, jv, :color => "red", :label => "Est le beau fils de" ) # Beau fils
g.add_edge( bp, gr )
g.add_edge( gr, md )
-g.output
+g.output( :png => "p2p.png" )
\ No newline at end of file