Adds isRoot method to NodeInterface.
Adds isChild method.