I would suggest that you parse 'treepaths' into a true tree datastructure of some kind (either nested Objects, or a simple hash of hashes). Once you have that, rendering tree's in the way you describe becomes extremely trivial using a recursive method which takes a "node" and a "indenting" depth as input.
In reply to Re: representing a tree graphically...
by hossman
in thread representing a tree graphically...
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |