deleteFromTree method

NodeV3 deleteFromTree()

Implementation

NodeV3 deleteFromTree() {
  if (parent == null) {
    throw Exception("Cannot delete tree root!");
  }

  parent!.children.remove(this);

  return this;
}