in reply to Re: Tree structure problem
in thread Graphical structure problem
Parent child relationship is defined in sub parentchildrelationship in hash %parentchild as 'a'=>['b','d'], where node 'a' has two parents, 'b','d'.
Result for the first foreach iteration, ie for $nodes[\0] is shown below (and this result is correct). The first line is the header with names of the nodes (target node here is 'a' and its parents are 'd' and 'b'). All other remaining lines represent combinations of all different values that the nodes can assume. However, I am getting incorrect results for $nodes[\1], $nodes[\2], and others. Please remove backslash from the array elements because I cannot figure out how to correctly write $nodes[\0] without a backslash. Wow, formatting appears a huge task here...any reason to make it complex. I hope this formatting works out..:)
Output:
|
|---|