File: sample31.rb

package info (click to toggle)
ruby-graphviz 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,156 kB
  • sloc: ruby: 7,682; xml: 26; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ruby

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

GraphViz.new(:g){ |g|
  a = g.add_nodes( "A:B:C", :shape => :record )
  b = g.add_nodes( "D:E:F", :shape => :ellipse )
  a << b
}.save( :png => "#{$0}.png" )