Hi,
Attached, I’m struggling with reordering a list generated by a recursive algorithm.
So that all identical members take identical values.
In this example, to be able to assign the same thickness to each branch in the same generation.
Thanks for the help in advance,
Hi,
I’m ‘python-blind’ but from the output of your component it is obvious that the lines are not grouped by generations.
I think you have two options:
change the code so that the lines come grouped by generation.
change the code so that each new generation of lines is shorter than the previous (that way you can use Rajaa’s elegant solution)