Sha256: 7a9b3df1139301405fba27b72555ff1e4e3aaee1359d6e788b33d8197c189b66

Contents?: true

Size: 270 Bytes

Versions: 10

Compression:

Stored size: 270 Bytes

Contents

# http://www.graphviz.org/Gallery/directed/hello.html
#
# digraph G {Hello->World}

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

GraphViz::new( :G, :type => :digraph ) { |g|
  g.world( :label => "World" ) << g.hello( :label => "Hello" )
}.output( :png => "hello.png" )

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-graphviz-0.9.11 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.10 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.9 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.8 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.7 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.6 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.5 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.4 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.3 examples/graphviz.org/hello_world.rb
ruby-graphviz-0.9.2 examples/graphviz.org/hello_world.rb