| 47 | } |
| 48 | |
| 49 | void NodeTree::promoteNode(NodeID nid, int kids, tree::NodeStatus status, Label label) |
| 50 | { |
| 51 | |
| 52 | /// find parent and kid's position |
| 53 | const auto pid = getParent(nid); |
| 54 | const auto alt = getAlternative(nid); |
| 55 | |
| 56 | promoteNode(pid, alt, kids, status, label); |
| 57 | } |
| 58 | |
| 59 | NodeID NodeTree::createRoot(int kids, Label label) |
| 60 | { |