Perl Module Graph::Easy offers a functionality to generate graphs consisting of various shaped nodes connected by edges (see the picture, for example). It can render graphs as ASCII, HTML, SVG or Graphviz. To quick start have a read that tutorial. It contains all needed information. The live demo of Graph::Easy is available here.