examples/sample18.rb in ruby-graphviz-0.9.1 vs examples/sample18.rb in ruby-graphviz-0.9.2
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/ruby
$:.unshift( "../lib" );
require "graphviz"
-GraphViz::new( "G", :output => "png", :rankdir => "LR", :size => "8,5" ) { |graph|
+GraphViz::new( "G", :rankdir => "LR", :size => "8,5" ) { |graph|
graph.node[:shape] = "doublecircle"
graph._LR_0; graph._LR_3; graph._LR_4; graph._LR_8
graph.node[:shape] = "circle"
(graph._LR_0 << graph._LR_2)[:label] = "SS(B)"
(graph._LR_0 << graph._LR_1)[:label] = "SS(S)"
@@ -19,6 +19,6 @@
(graph._LR_6 << graph._LR_5)[:label] = "S(a)"
(graph._LR_7 << graph._LR_8)[:label] = "S(b)"
(graph._LR_7 << graph._LR_5)[:label] = "S(a)"
(graph._LR_8 << graph._LR_6)[:label] = "S(b)"
(graph._LR_8 << graph._LR_5)[:label] = "S(a)"
-}.output( :path => '/usr/local/bin/', :file => "#{$0}.png" )
+}.output( :path => '/usr/local/bin/', :png => "#{$0}.png" )
\ No newline at end of file