examples/arrowhead.rb in ruby-graphviz-0.9.1 vs examples/arrowhead.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] )
+ g = GraphViz::new( "G", "path" => ARGV[0] )
else
- g = GraphViz::new( "G", "output" => "png" )
+ g = GraphViz::new( "G" )
end
g["rankdir"] = "LR"
g.node["shape"] = "ellipse"
g.edge["arrowhead"] = "normal"
@@ -92,6 +92,6 @@
g.add_node( p, "shape" => "point" )
g.add_node( s )
g.add_edge( p, s, "arrowhead" => s )
}
-g.output( :file => "#{$0}.png" )
+g.output( :png => "#{$0}.png" )