Sha256: 307d6ba8e3ba3b10e08ef2c4b1cdd4d5b6b94d63bb7eda4cf2381e1cd5a4a35f

Contents?: true

Size: 987 Bytes

Versions: 39

Compression:

Stored size: 987 Bytes

Contents

#!/usr/bin/ruby

$:.unshift( "../lib" );
require "graphviz"

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)"
  (graph._LR_1 << graph._LR_3)[:label] = "S($end)"
  (graph._LR_2 << graph._LR_6)[:label] = "SS(b)"
  (graph._LR_2 << graph._LR_5)[:label] = "SS(a)"
  (graph._LR_2 << graph._LR_4)[:label] = "S(A)"
  (graph._LR_5 << graph._LR_7)[:label] = "S(b)"
  (graph._LR_5 << graph._LR_5)[:label] = "S(a)"
  (graph._LR_6 << graph._LR_6)[:label] = "S(b)"
  (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/', :png => "#{$0}.png" )

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
ruby-graphviz-1.2.5 examples/sample18.rb
ruby-graphviz-1.2.4 examples/sample18.rb
ruby-graphviz-1.2.3 examples/sample18.rb
ruby-graphviz-1.2.2 examples/sample18.rb
ruby-graphviz-1.2.1 examples/sample18.rb
ruby-graphviz-1.2.0 examples/sample18.rb
ruby-graphviz-1.1.0 examples/sample18.rb
ruby-graphviz_c-1.1.1 examples/sample18.rb
ruby-graphviz_c-1.1.0 examples/sample18.rb
ruby-graphviz-1.0.9 examples/sample18.rb
ruby-graphviz-1.0.8 examples/sample18.rb
ruby-graphviz-1.0.7 examples/sample18.rb
ruby-graphviz-1.0.6 examples/sample18.rb
ruby-graphviz-1.0.5 examples/sample18.rb
ruby-graphviz-1.0.4 examples/sample18.rb
ruby-graphviz-1.0.3 examples/sample18.rb
ruby-graphviz-1.0.2 examples/sample18.rb
ruby-graphviz-1.0.1 examples/sample18.rb
ruby-graphviz-1.0.0 examples/sample18.rb
ruby-graphviz-0.9.21 examples/sample18.rb