/usr/share/doc/ruby-graphviz/examples/sample39.rb is in ruby-graphviz 1.0.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | $:.unshift( "../lib" );
require "graphviz"
g = GraphViz::new( "G", :type => "graph" )
n1 = g.add_nodes( "A" )
n2 = g.add_nodes( "B" )
n3 = g.add_nodes( "C" )
e1 = g.add_edges( n1, n2 )
e1[:dir] = 'forward'
e2 = g.add_edges( n1, n3 )
g.output( :png => "#{$0}.png" )
|