2008/5/19 Roger Hui <[EMAIL PROTECTED]>:
> Grab the node you want to be the root, lift the whole graph, and shake ...

It's actually easier to do if you grab an adjacent node to the
previous root in each step.  If you want to do all the rooting and
shaking in one step, branches of your tree might jam with each other.

See "http://www.perlmonks.com/?node_id=401421"; for an example.

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to