I was looking into param viewer to understand the data tree. I just set a random branches manually and tried to draw a tree myself if I understood clear.
Could someone suggest me the best way to understand?
I am aware that creating data tree manually is not a thing in reality. I just set those to understand data tree in Param viewer. Param viewer.gh (24.9 KB)
However if you could code (obviously not the case) I could provide lot’s of things related with learning Trees like this one that (a) does rnd Trees (plus finds fathers/childs etc etc) and (b) creates a pointless Graph exactly as the viewer does (red: paths with no items, green: paths with items).
Tip: try to get the gist of DataTrees (“kinda” a Dictionary of Lists - add some " " more) with other far more productive ways
I don’t use the Param Viewer as well, usually I control the data structure from Panels.
But I would agree the red line represents the branch content itself (item ot list).
I would rather draw your second case as follow. It’s strange Param Viewer collapses the {0} and {1} branch at the trunk.
Don’t overthink data trees, they are just a way to cluster your data. Each depth level should correspond to an intelligent division of your project - each facade of a building, then each level of each facade, then each column of each level, then…