Create one curve from multiple curves?

I am having trouble connecting multiple curves as a list. I had been trying to divide my curves in multiple segments (n) but my curve is still divided in 2, I already tried to rebuild them by multiple ways but I still end up with divisions. I was looking for a result on wherre I have 32 branches with n=1

![image|690x347]GH FORUM.gh (65.0 KB)
(upload://tuBlXZxUNxhsv0qDG5XPXppoTew.png)

The Issue was your tree structure going into your first joined crvs i have solved it for this case but would be better to get the structure solved before the list is merged with multiple length path index’s

GH FORUM - Tree Str Solved.gh (88.7 KB)