$:.unshift( "../lib" ) require 'graphviz' puts GraphViz.graph( :G ) { |g| g[:label] = "<This is a test>" n1 = g.add_nodes( "N1", :label => '<node 1>') n2 = g.add_nodes( "N2", :label => '<node 2>') g.add_edges( n1, n2, :label => '<edge>') }.output( :png => "#{$0}.png", :none => String )