Sha256: 547b5ae281fffafe47bf4b59b557cef6de4a06f3b168616bf3ad520d5d861821

Contents?: true

Size: 334 Bytes

Versions: 12

Compression:

Stored size: 334 Bytes

Contents

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

puts GraphViz.graph( :G ) { |g|
  g[:label] = "<<b>This</b> is <i>a</i> <b>test</b>>"
  n1 = g.add_node( "N1", :label => '<<b>node 1</b>>')
  n2 = g.add_node( "N2", :label => '<<b>node 2</b>>')
  g.add_edge( n1, n2, :label => '<<u>edge</u>>')
}.output( :png => "#{$0}.png", :none => String )

Version data entries

12 entries across 12 versions & 1 rubygems

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