TreeChildren

TreeChildren[tree]

extracts the children of the root of the Tree object tree.

Details

Examples

open allclose all

Basic Examples  (1)

Extract the children subtrees of a tree:

Properties & Relations  (4)

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

TreeChildren[Tree[data,{}]] gives {}:

TreeChildren[Tree[data,None]] gives None:

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

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

TreeChildren[tree] is equivalent to TreeLevel[tree,{1}] when TreeChildren[tree] gives a list:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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