examples/sample09.rb in ruby-graphviz-0.9.0 vs examples/sample09.rb in ruby-graphviz-0.9.1
- old
+ new
@@ -3,13 +3,13 @@
$:.unshift( "../lib" );
require "graphviz"
g = nil
if ARGV[0]
- g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0] )
+ g = GraphViz::new( "G", "path" => ARGV[0] )
else
- g = GraphViz::new( "G", "output" => "png" )
+ g = GraphViz::new( "G" )
end
g.node["shape"] = "ellipse"
g.node["color"] = "black"
@@ -45,6 +45,6 @@
g.add_edge( b2, a3 )
g.add_edge( a3, a0 )
g.add_edge( a3, endn )
g.add_edge( b3, endn )
-g.output( :file => "#{$0}.png" )
+g.output( :png => "#{$0}.png" )