You might want to look at Leon Brocard's
GraphViz.pm module which is a Perl interface to the graphing tools of the
GraphViz project. These tools are for generating directed and undirected graphs of which a tree can be considered a subset.
As part of the same project, you might also be interested in
webdot which if a CGI program for generating graphs. There is an example of a
tree on the webdot
demo page.
Anyone else who is interested in this module should have a look at Leon's GraphViz.pm graphing
tutorial which shows examples of graphing Perl data structures, XML, sub-routine cross references, code profiling, modules dependencies, op-codes and the Perl grammar!!
You are also use this module to graph Parse::RecDescent grammars and regexes and, as if that wasn't enough, there is also
GraphViz::DBI for graphing database tables and relations and
GraphViz::ISA for graphing the @ISA hierarchy.
John.
--
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.