Sha256: 9b721577d6ce8546f6cb1267f0b89f0ba50b93d381760dba7313ea5623b5d567

Contents?: true

Size: 417 Bytes

Versions: 13

Compression:

Stored size: 417 Bytes

Contents

#!/usr/bin/ruby

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

GraphViz.new(:g){ |g|
  g[:center] = true
  a = g.add_node("A", :shape => "sdl_procedure_start", :peripheries => 0 )
  b = g.add_node("B", :shape => "sdl_save", :peripheries => 0)
  c = g.add_node("n", :shape => "box", :label => "\\G::\\N\\r")
  a << b << c
}.save( :ps => "#{$0}.ps", :extlib => File.join( File.dirname(__FILE__), "sdlshapes", "sdl.ps" ) )

Version data entries

13 entries across 13 versions & 1 rubygems

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