in reply to Re^2: Tree in perlin thread Tree in perl
This does not look as a cycle or a circle to me.
Why not?
1 2 2 3 1 3 DO YOU SEE IT NOW? [1,--2] | | | [2,3] | | [1,----3] [download]
1 /| 2 | \| 3 [download]
Furthermore asking for the "shortest" path in a tree doesn't make much sense, there is by definition exactly one between any two nodes.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
¹) the definition above circumvents the problem by postulating an undirected graph.