Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Challenge: Dumping trees.

by Anonymous Monk
on Oct 13, 2012 at 02:58 UTC ( #998815=note: print w/ replies, xml ) Need Help??

in reply to Challenge: Dumping trees.

I've spent the last couple of days trying to code this but haven't yet succeeded. Any offers?

(NOTE: I'm looking for a compact dump to a terminal; not presentation quality graphics here. Ie. I'm not looking for GraphViz or similar, so please don't tell me about those.)

Hmmm. I've seen something resembling that in Tree::Visualize, I'm sure the BOX-ing can be easily undone ... Tree::Visualize::ASCII::BoundingBox ... here is a start

See also which appears right on the money but I've not tested it

I really am surprised there isn't something in the GraphViz family to do this already, graph-easy can read DOT files but the output isn't exactly what you want

Comment on Re: Challenge: Dumping trees.
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998815]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2015-10-06 20:18 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (160 votes), past polls