- tree(node, levels=, max_depth=None)¶
Displays the model tree.
This function displays a representation of the model tree in the console.
nodewould typically be the model’s root node.
levelsis used internally when traversing the model tree recursively. Specify
max_depthto 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.