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