Sha256: 01784448e85d3fe8723af9b2ae1cb1d476a8d6acb1421af9ecc53020ae553a3d
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
#!/usr/bin/ruby $:.unshift( "../lib" ); require "graphviz" g = nil if ARGV[0] g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0] ) else g = GraphViz::new( "G", "output" => "png" ) end g["rankdir"] = "LR" g.node["shape"] = "ellipse" g.edge["arrowhead"] = "normal" [ "box", "boxbox", "lbox", "lboxlbox", "rbox", "rboxrbox", "olbox", "olboxolbox", "orbox", "orboxorbox", "obox", "oboxobox", "crow", "crowcrow", "lcrow", "lcrowlcrow", "rcrow", "rcrowrcrow", "diamond", "diamonddiamond", "ldiamond", "ldiamondldiamond", "rdiamond", "rdiamondrdiamond", "oldiamond", "oldiamondoldiamond", "ordiamond", "ordiamondordiamond", "odiamond", "odiamondodiamond", "dot", "dotdot", "odot", "odotodot", "inv", "invinv", "linv", "linvlinv", "rinv", "rinvrinv", "olinv", "olinvolinv", "orinv", "orinvorinv", "oinv", "oinvoinv", "none", "nonenone", "normal", "normalnormal", "lnormal", "lnormallnormal", "rnormal", "rnormalrnormal", "olnormal", "olnormalolnormal", "ornormal", "ornormalornormal", "onormal", "onormalonormal", "tee", "teetee", "ltee", "lteeltee", "rtee", "rteertee", "vee", "veevee", "lvee", "lveelvee", "rvee", "rveervee" ].each { |s| p = "p_" << s g.add_node( p, "shape" => "point" ) g.add_node( s ) g.add_edge( p, s, "arrowhead" => s ) } g.output( :file => "#{$0}.png" )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-graphviz-0.9.1 | examples/arrowhead.rb |
ruby-graphviz-0.9.0 | examples/arrowhead.rb |