I am developing an open source JS library that deals with tree structures and scene graphs. As it is targeted for general use, the names of the API methods should follow conventions. However, I cannot find the term for a tree operation where a node is removed from its parent so that the child nodes of the removed one become inserted to the parent to replace the position of the removed one.
To illustrate, the method X is applied to the node B
in the tree:
A
|
+-B
| |
| +-C
| |
| +-D
| |
| +-E
|
+-F
The result of the operation:
A
|
+-C
|
+-D
| |
| +-E
|
+-F
What is the name of such operation/method X? I remember I have seen it having a specific name years ago. Splice? Reduce? Simplify? Flatten?