Yes it’s not easy to understand, but I think you might be right in any case.
I have attached a file as an example. There is a tree structure with points in branches, which I basically want to re-shuffle into the branch structure below, or as in the screenshot attached.
retrieve_paths.gh (21.1 KB)
I internalised the points to make it easy to look at.