TreeLeaves

TreeLeaves[tree]

returns the list of leaves of the tree tree.

Details

Examples

open allclose all

Basic Examples  (1)

Get the leaves of a tree:

Properties & Relations  (1)

TreeLeaves[tree] is equivalent to TreeLevel[tree,{-1}]:

Wolfram Research (2021), TreeLeaves, Wolfram Language function, https://reference.wolfram.com/language/ref/TreeLeaves.html.

Text

Wolfram Research (2021), TreeLeaves, Wolfram Language function, https://reference.wolfram.com/language/ref/TreeLeaves.html.

BibTeX

@misc{reference.wolfram_2021_treeleaves, author="Wolfram Research", title="{TreeLeaves}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/TreeLeaves.html}", note=[Accessed: 18-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_treeleaves, organization={Wolfram Research}, title={TreeLeaves}, year={2021}, url={https://reference.wolfram.com/language/ref/TreeLeaves.html}, note=[Accessed: 18-September-2021 ]}

CMS

Wolfram Language. 2021. "TreeLeaves." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TreeLeaves.html.

APA

Wolfram Language. (2021). TreeLeaves. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TreeLeaves.html