Skip to content

OpenBIMRL | Tree functions

Class path: tree.removeTreeNode

Remove Tree Node

removeTreeNode1.png

Description

Removes a node (leaf node or subtree) of a specific path from the tree.

Input

Input Name Typ Description
0 tree Tree The tree to be modified.
1 trace Path/Trace The path to the subtree or leaf node to be removed.

Output

Output Name Typ Description
0 tree Tree The modified tree.
1 node Node Removed node

Use/Example

removeTreeNode2.png

Node representation with example values

Sample file