Ruby/Graphviz provides an interface to layout and generate images of directed graphs in a variety of formats (PostScript, PNG, etc.) using GraphViz.
Gregoire Lejeune
gem "ruby-graphviz", "~> 1.0.6"