Tree

Tree is an internal structure used by the default view model implementation (gaphas.Canvas). A tree consists of nodes.

The tree is optimized for depth-first search.

Source code: https://github.com/gaphor/gaphas/blob/master/gaphas/tree.py.