Hello, I tried some components provided by Elefront but seems like there is no such a component…
Is there a way to graft a tree by looking at another tree?
For example, I have a tree like this.
{0;0}
{0;1}
{0;2}
{1;0}
{1;1}
{1;2}
And I have another tree like this.
{0}=A
{1}=B
And this tree is what I want.
{0;0}=A
{0;1}=A
{0;2}=A
{1;0}=B
{1;1}=B
{1;2}=B
Sounds like a basic technique, but I couldn’t find a way to do this.
Can you be a little more specific? If you have 3 items in list A & B & graft you will have the tree you want.
How many items in original tree [1] ? You can trim tree then duplicate data match (elefront component) the first list. Replace Paths & Match tree could work too – depending on the items.
yes, thank you Jakinta. This is exactly what I was talking about. But is there more standard/custom component way to do this? especially when the tree got deeper, the script will be too complicated.
Depends on the incoming data, the example above is simple and fairly robust. Unlike trim tree if the depth of the trees changes. Neither will work in this format if the # of items change in list A or B.
Thank you Jakinta,
Yes that solves the issue. I was actually wondering if there is a simpler way (ideally a single component) to to this…
Some components from Elefront seems to aiming this, but none of them worked…
Duplicate Data Math
Graft Parallel
ShiftMatch
Also, Match Tree requires same item counts.
(and just noticed, I’m logging in as different users when accessed from different computers. I’ve been trying to fix this problem, but never found a way to consolidate accounts to one…)