TreeData

TreeData[tree]

extracts the data in the root of the Tree object tree.

Details

Examples

open allclose all

Basic Examples  (2)

Extract the data in the root of a tree:

Use TreeData in TreeExtract:

Properties & Relations  (3)

TreeData[Tree[data,subtrees]] gives data:

RootTree[tree] gives Tree[TreeData[tree],None] when TreeChildren[tree] gives None:

RootTree[tree] gives Tree[TreeData[tree],{}] when TreeChildren[tree] gives a list:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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