Do not allow a node to become its own parent or child.
Do not allow a node to become its own parent or child.