TreeDelete

TreeDelete[tree,pos]

deletes the subtrees of tree at positions specified by pos.

Details

  • In TreeDelete[tree,pos], tree must be a TreeQ object.
  • The following positions can be used for pos:
  • ithe ith child
    -ithe ith child from the end

Examples

Basic Examples  (1)

Delete a subtree in a tree:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_treedelete, author="Wolfram Research", title="{TreeDelete}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/TreeDelete.html}", note=[Accessed: 22-June-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_treedelete, organization={Wolfram Research}, title={TreeDelete}, year={2021}, url={https://reference.wolfram.com/language/ref/TreeDelete.html}, note=[Accessed: 22-June-2021 ]}

CMS

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

APA

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