Sha256: fcd39be0efc3c3c33a63e22fb0a85ec6b76978fee6e8bde3cea0ced29a7de864

Contents?: true

Size: 338 Bytes

Versions: 16

Compression:

Stored size: 338 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_nodes( "N1", :label => '<<b>node 1</b>>')
  n2 = g.add_nodes( "N2", :label => '<<b>node 2</b>>')
  g.add_edges( n1, n2, :label => '<<u>edge</u>>')
}.output( :png => "#{$0}.png", :none => String )

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
ruby-graphviz-1.2.5 examples/sample55.rb
ruby-graphviz-1.2.4 examples/sample55.rb
ruby-graphviz-1.2.3 examples/sample55.rb
ruby-graphviz-1.2.2 examples/sample55.rb
ruby-graphviz-1.2.1 examples/sample55.rb
ruby-graphviz-1.2.0 examples/sample55.rb
ruby-graphviz-1.1.0 examples/sample55.rb
ruby-graphviz_c-1.1.1 examples/sample55.rb
ruby-graphviz_c-1.1.0 examples/sample55.rb
ruby-graphviz-1.0.9 examples/sample55.rb
ruby-graphviz-1.0.8 examples/sample55.rb
ruby-graphviz-1.0.7 examples/sample55.rb
ruby-graphviz-1.0.6 examples/sample55.rb
ruby-graphviz-1.0.5 examples/sample55.rb
ruby-graphviz-1.0.4 examples/sample55.rb
ruby-graphviz-1.0.3 examples/sample55.rb