Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Re-ordering data branches in a [Tree::DAG_Node] tree

by tybalt89 (Monsignor)
on Apr 23, 2018 at 14:38 UTC ( [id://1213437]=note: print w/replies, xml ) Need Help??


in reply to Re: Re-ordering data branches in a [Tree::DAG_Node] tree
in thread Re-ordering data branches in a [Tree::DAG_Node] tree

My understanding is the tree structure should be preserved - only sibling nodes can be swapped to sorted order.
For instance, node 'b' is a child of node 'c' in my original data, and should still be a node of 'c' in the result. It is not.

I think the result should be

c b a j e d h g f i

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-18 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found