Sha256: e640c3eaf21d2a2a9453bddb3709acdf7de2b727cf724abbb8d3132ec1717b61
Contents?: true
Size: 446 Bytes
Versions: 7
Compression:
Stored size: 446 Bytes
Contents
#!/usr/bin/ruby $:.unshift( "../lib" ) require "graphviz" g = nil if ARGV[0] g = GraphViz::new( "G", :path => ARGV[0] ) else g = GraphViz::new( "G" ) end g.node[:color] = "#FF0000:#FFFFFF" g.add_edges("noDe", "graph") g.add_edges("node", "graph") g.add_edges("node", "Graph") g.add_edges("graph", "subgraph") g.add_edges("edge", "node") g.add_edges("subgraph", "digraph") g.add_edges("subgraph", "strict") g.output( :png => "#{$0}.png" )
Version data entries
7 entries across 7 versions & 1 rubygems