How to merge tree branches?

Hey,
I just don’t know how to solve this issue.
This is my current data tree structure:
350 values:

{0;0} (N=14)
{0;1} (N=14)
{0;2} (N=14)
{0;3} (N=14)
{0;4} (N=14)
{1;0} (N=14)
{1;1} (N=14)
{1;2} (N=14)
{1;3} (N=14)
{1;4} (N=14)

{4;4} (N=14)

What I need now is:

{0} (N=14)
{1} (N=14)
{2} (N=14)
{3} (N=14)

{24} (N=14)

How do I do it?

Thank you for your help!

You could do it like this.

renumber Paths_ReV1.gh (22.5 KB)

1 Like

Thank you so much! Worked fine :slight_smile: