/// <summary> /// Detaches this node from it's parent. /// Postcondition: this is a root node. /// </summary> /// <returns></returns> public DTreeNode <T> Detach() { if (mParent != null) { Siblings.Remove(this); } return(this); }
/// <summary> /// Detaches this node from it's parent. /// Postcondition: this is a root node. /// </summary> /// <returns></returns> public T Detach() { if (_parent != null) { Siblings.Remove((T)this); } return((T)this); }
private void RemoveSibling(Person person) { Siblings.Remove(person); }