`Tree[data, {children…}]` is a tree node; `None` in place of the children
Tree[{subtree1, subtree2, …}]
Tree[< | key1 -> subtree1, key2 -> subtree2, … | >]
Tree[data, subtrees]
t = Tree[1, {Tree[2, None], Tree[3, None]}]; {TreeData[t], Length[TreeChildren[t]]}
→ {1, 2}TreeLeaves[Tree[1, {Tree[2, {Tree[4, None]}], Tree[3, None]}]]
→ {Tree[4, None], Tree[3, None]}TreeCases[Tree[1, {Tree[2, {Tree[4, None]}], Tree[3, None]}], _?EvenQ]
→ {Tree[4, None], Tree[2, {Tree[4, None]}]}Reap[TreeScan[Sow, Tree[1, {Tree[2, {Tree[4, None]}], Tree[3, None]}]]]
→ {Null, {{4, 2, 3, 1}}}{AtomQ[Tree[1, None]], Depth[Tree[1, {Tree[2, None]}]], Length[Tree[1, None]], LeafCount[Tree[1, {Tree[2, None]}]]}
→ {True, 1, 0, 1}Map[f, Tree[1, {Tree[2, None]}]]
→ Tree[1, {Tree[2, None]}]- FormatType — default StandardForm
- MaxDisplayedChildren — default $MaxDisplayedChildren
- ParentEdgeLabel — default Automatic
- ParentEdgeLabelFunction — default Automatic
- ParentEdgeLabelStyle — default Automatic
- ParentEdgeShapeFunction — default Automatic
- ParentEdgeStyle — default Automatic
- ParentEdgeStyleFunction — default Automatic
- PerformanceGoal — default Automatic
- TreeElementCoordinates — default Automatic
- TreeElementLabel — default Automatic
- TreeElementLabelFunction — default Automatic
- TreeElementLabelStyle — default Automatic
- TreeElementShape — default Automatic
- TreeElementShapeFunction — default Automatic
- TreeElementSize — default Automatic
- TreeElementSizeFunction — default Automatic
- TreeElementStyle — default Automatic
- TreeElementStyleFunction — default Automatic
- TreeLayout — default Automatic