tree¶
- tree(node, levels=[], max_depth=None)[source]¶
Displays the model tree.
This function displays a representation of the model tree in the console.
node
would typically be the model’s root node.levels
is used internally when traversing the model tree recursively. Specifymax_depth
to possibly limit the number of lower branches.Note that this function performs poorly in client–server mode, the default on Linux and macOS, especially for complex models. The client–server communication introduces inefficiencies that do not occur in stand-alone mode, the default on Windows, where the model tree, i.e. the hierarchy of related Java objects, can be traversed reasonably fast.