TreeReplacePart

TreeReplacePart[tree,posnew]

gives a tree in which the subtrees of tree at positions specified by pos are replaced by new.

Details

Examples

Basic Examples  (1)

Replace the third subtree of a tree:

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

Text

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

BibTeX

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

BibLaTeX

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

CMS

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

APA

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