Sha256: ba6bcfc294e9032312613b1324fbf7f4f04d8f83cd0896e6b84a74589aef6e43

Contents?: true

Size: 611 Bytes

Versions: 18

Compression:

Stored size: 611 Bytes

Contents

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

digraph :G do

   node[:color => :lightblue, :style => :filled, :shape => :egg]
   edge[:color => :gray, :arrowhead => :vee]

   e "C/C++", "Java"

   java do
      n("Java") << n("Groovy")
      n("Java") << n("Clojure")
      n("Java") << n("JRuby")
      graph[:label => "Java", :color => :blue]
   end

   e "C/C++", "Perl"
   e "Perl", "PHP"
   e "Perl", "Ruby"
   e "Ruby", "Rubinius"
   e "Ruby", "MacRuby"
   e "Ruby", "JRuby"

   %w{ Ruby JRuby MacRuby Rubinius }.each do |ruby|
      n(ruby)[:color => :tomato]
   end

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

Version data entries

18 entries across 18 versions & 2 rubygems

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