Sha256: 6c130c194cf410d710a9c8831068b83542985c0738f8d1cdc968e4d393780632

Contents?: true

Size: 260 Bytes

Versions: 13

Compression:

Stored size: 260 Bytes

Contents

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

g = GraphViz::new( "G", :type => "graph" )
n1 = g.add_node( "A" )
n2 = g.add_node( "B" )
n3 = g.add_node( "C" )
e1 = g.add_edge( n1, n2 )
e1[:dir] = 'forward'
e2 = g.add_edge( n1, n3 )
g.output( :png => "#{$0}.png" )

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.2 examples/sample39.rb
ruby-graphviz-1.0.1 examples/sample39.rb
ruby-graphviz-1.0.0 examples/sample39.rb
ruby-graphviz-0.9.21 examples/sample39.rb
ruby-graphviz-0.9.20 examples/sample39.rb
ruby-graphviz-0.9.19 examples/sample39.rb
ruby-graphviz-0.9.18 examples/sample39.rb
ruby-graphviz-0.9.17 examples/sample39.rb
ruby-graphviz-0.9.16 examples/sample39.rb
ruby-graphviz-0.9.15 examples/sample39.rb
ruby-graphviz-0.9.14 examples/sample39.rb
ruby-graphviz-0.9.13 examples/sample39.rb
ruby-graphviz-0.9.12 examples/sample39.rb