examples/sample60.rb in ruby-graphviz-1.0.2 vs examples/sample60.rb in ruby-graphviz-1.0.3
- old
+ new
@@ -3,10 +3,10 @@
$:.unshift( "../lib" );
require "graphviz"
asm = GraphViz::new( "My ASM" )
-my = asm.add_node("My")
-asmn = asm.add_node("ASM")
-asm.add_edge(my, asmn)
+my = asm.add_nodes("My")
+asmn = asm.add_nodes("ASM")
+asm.add_edges(my, asmn)
asm.output( :png => "#{$0}.png" )