Adds a child node to parent. If child already has a parent, it is removed from that parent.
parent
child
Error if adding a child would break tree structure
Adds a child node to
parent. Ifchildalready has a parent, it is removed from that parent.