1504
1504
if len(node_children) != 1:
1506
1506
child_parents = result.get(node_children[0], None)
1509
1507
if len(child_parents) != 1:
1510
1508
# This is not its only parent
1513
1510
# The child of this node only points at it, and the parent only has
1514
1511
# this as a child. remove this node, and join the others together
1515
1512
result[node_children[0]] = parents