Looking at your parentchildrelationship sub, I can't see how it's defining a tree of any kind. Either 'a' has two parents or 'b' has two parents.
It would help us to know what kind of output you're expecting. One thing I notice is that you print $nodeparents, but that's an array reference. You might want to look at Data::Dumper to see the contents of it.
In reply to Re: Tree structure problem
by kyle
in thread Graphical structure problem
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |