Need one more help on looping through Parts

Hi ,
I need to get a part of tree with node information and loop though the sub tree and get how many levels for that sub tree…

Thanks.
Junish

All of the methods you need to walk the subtree are on the Node class, http://gojs.net/latest/api/symbols/Node.html. There are examples of navigating the diagram in many places, including http://gojs.net/latest/intro/collections.html and http://gojs.net/latest/samples/navigation.html.