Data Tree Splitting by Similar Value

Hello,

I have a small example of a Data tree on the left and i want to split the Data Tree by grafting them by similar value within each branch that way i can merge them back together within the same branch. The example on the right shows how i want them to be split, and i’m stuck, any assistance would be helpful.

this might be one way

set_graft.gh (7.3 KB)

2 Likes

3 Likes

oh yes, mine is wrong, I didn’t get the initial tree had to be just partitioned -even if it was clearly well explained :smiley:

… happens…

Btw mine works only if data is pre-sorted.