UnlabeledTree
✖
UnlabeledTree
returns a tree of the same shape as tree in which the nodes and edges are displayed without labels.
Details and Options

- UnlabeledTree shows the overall structure of a Tree object.
- By default, UnlabeledTree gives a tree with Null as the data of each node.
- If the original tree has options, they will be modified to eliminate labels in the output.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Options (4)Common values & functionality for each option
Styling Individual Tree Elements (1)
Tree Layout and Graphics Options (3)
Specify the orientation for the root:

https://wolfram.com/xid/0bh1598sy8i2zw-hocvqc


https://wolfram.com/xid/0bh1598sy8i2zw-i8q32r

Specify Graphics options:

https://wolfram.com/xid/0bh1598sy8i2zw-dbhiu5

Properties & Relations (2)Properties of the function, and connections to other functions
UnlabeledTree overrides TreeElementLabel and ParentEdgeLabel specifications given by subtrees:

https://wolfram.com/xid/0bh1598sy8i2zw-mgd4ka


https://wolfram.com/xid/0bh1598sy8i2zw-wnfpta

UnlabeledTree[ExpressionTree[expr]] removes all data and labels from an expression tree:

https://wolfram.com/xid/0bh1598sy8i2zw-nykuk3

ExpressionTree[expr,Null] gives an expression tree with no data directly:

https://wolfram.com/xid/0bh1598sy8i2zw-0ijv7o

Wolfram Research (2022), UnlabeledTree, Wolfram Language function, https://reference.wolfram.com/language/ref/UnlabeledTree.html.
Text
Wolfram Research (2022), UnlabeledTree, Wolfram Language function, https://reference.wolfram.com/language/ref/UnlabeledTree.html.
Wolfram Research (2022), UnlabeledTree, Wolfram Language function, https://reference.wolfram.com/language/ref/UnlabeledTree.html.
CMS
Wolfram Language. 2022. "UnlabeledTree." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnlabeledTree.html.
Wolfram Language. 2022. "UnlabeledTree." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnlabeledTree.html.
APA
Wolfram Language. (2022). UnlabeledTree. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnlabeledTree.html
Wolfram Language. (2022). UnlabeledTree. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnlabeledTree.html
BibTeX
@misc{reference.wolfram_2025_unlabeledtree, author="Wolfram Research", title="{UnlabeledTree}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/UnlabeledTree.html}", note=[Accessed: 05-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_unlabeledtree, organization={Wolfram Research}, title={UnlabeledTree}, year={2022}, url={https://reference.wolfram.com/language/ref/UnlabeledTree.html}, note=[Accessed: 05-June-2025
]}