Fix getImmediate and transitive relationships from a parent node.