152
163
known_parent_gdfos = dict.fromkeys(nodes.keys(), 0)
161
172
for child_key in node.child_keys:
164
178
if child.gdfo is None or node.gdfo + 1 > child.gdfo:
165
179
child.gdfo = node.gdfo + 1
166
180
if known_parent_gdfos[child_key] == len(child.parent_keys):