All Possible Combinations from a Tree

Hi All,

I’m wanting to get all the possible combinations from a tree as shown (this tree can change).


I have shown what I what I want the output to be (its just the indices) however I need it to be dynamic so I don’t have to keep fixing the inputs for the cross reference and merge when the input list changes. Any suggestions?

the combinations you are looking for is a “product” in the python itertool module
see attached file
forum_c.gh (7.7 KB)

1 Like