Sha256: 4daf96cd3d5ad476340288f61478eefe249edc4c46805783c73f141f4a532b61

Contents?: true

Size: 596 Bytes

Versions: 18

Compression:

Stored size: 596 Bytes

Contents

$:.unshift( "../lib" )
require 'graphviz/dsl'

digraph :G do
   cluster_0 do
      graph[:style => :filled, :color => :lightgrey]
      node[:style => :filled, :color => :white]
      a0 << a1 << a2 << a3
      graph[:label => "process #1"]
   end

   cluster_1 do
      node[:style => :filled]
      b0 << b1 << b2 << b3
      graph[:label => "process #2", :color => :blue]
   end

   start << a0
   start << b0
   a1 << b3
   b2 << a3
   a3 << a0
   a3 << _end
   b3 << _end

   start[:shape] = :Mdiamond
   _end[:label] = "end"
   _end[:shape] = :Mdiamond

   output(:png => "#{$0}.png")
end

Version data entries

18 entries across 18 versions & 2 rubygems

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