IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

Tree

Tree​

max.tree.Tree

source

A nested value: a leaf, or a node whose children are trees. Nodes are lists, tuples, dicts, named tuples, and classes declaring __tree_flatten__. Rebuilding a node calls __tree_unflatten__ or, when the node must exist before its children, __tree_empty__.