I wouldn't be surprised if there wasn't something in the GraphViz family in the CPAN for that already. And if not, converting an HTML tree into node links that can be fed into command-line graphviz is probably a half-hour of programming at most.
in reply to HTML tree - making a flowchart of it.
-- Randal L. Schwartz, Perl hacker
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.