Add items to branches of a tree

Hi,
I would like to add elements to the branches of a tree after creating the tree, how can I do this?

Thanks

Depending on what the context is this could be easy or more advanced.

Thanks, that is what I wanted, I will try to replicate this in C#. Do you think its doable?

Hi! I am trying to configure this for a scenario where there are an uneven number of items that need to be added to different branches. I am attaching a file where there is a main tree with 14 branches, a list of 8 items, and a list of indices of the branches where the items need to be placed. This is just an example from a larger file that is parsing data based on different tags which need to be organized together. Would appreciate any tipsparsing-example.gh|attachment (10.4 KB)

replace paths might work well in this case

Yes, perfect, thanks!