Tree Visualization

Many fundamental data structures in mathematics and science can be visualized as trees. Tree objects are automatically displayed in a notebook as a plot of a tree graph, allowing hierarchical structures to be easily inspected. The Wolfram Language provides in-depth support for every aspect of styling, labeling and rendering trees. Options specified by a tree can affect its root node and parent edge, as well as those of any subtrees at positions matching a pattern, including inheriting and overriding settings.

Tree automatic visualization for tree objects

TreeOutline create an interactive outline view of a tree

Tree Layout

TreeLayout algorithmic tree layouts

TreeElementCoordinates specify all or individual node coordinates

Node and Edge Styles

TreeElementStyle style all or individual nodes

ParentEdgeStyle style all or individual edges

TreeElementStyleFunction generate styles for nodes

ParentEdgeStyleFunction generate styles for edges

Node and Edge Labels

UnlabeledTree remove all data and labels from a tree

TreeElementLabel label all or individual nodes

ParentEdgeLabel label all or individual edges

TreeElementLabelStyle style all or individual node labels

ParentEdgeLabelStyle style all or individual edge labels

TreeElementLabelFunction generate labels for nodes

ParentEdgeLabelFunction generate labels for edges

Node and Edge Shapes

TreeElementSize set the size of all or individual nodes

TreeElementSizeFunction generate the sizes for nodes

TreeElementShape specify the shape of all or individual nodes

TreeElementShapeFunction generate the shapes of nodes

ParentEdgeShapeFunction generate the shapes of edges


MaxDisplayedChildren option to control elision of subtrees

$MaxDisplayedChildren global variable to control elision of subtrees