Graphics/GraphicsUtilities.py

changeset 2991
226481ff40d1
parent 2953
703452a2876f
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2990:583beaf0b4b8 2991:226481ff40d1
48 nodes = list(filter(lambda x, l=stage: x not in l, nodes)) 48 nodes = list(filter(lambda x, l=stage: x not in l, nodes))
49 while nodes: 49 while nodes:
50 previousStageChildren = [] 50 previousStageChildren = []
51 nodelen = len(nodes) 51 nodelen = len(nodes)
52 52
53 # second stage are those nodes, which are direct children of the first stage 53 # second stage are those nodes, which are direct children of the
54 # first stage
54 for node in stage: 55 for node in stage:
55 for child in children.get(node, []): 56 for child in children.get(node, []):
56 if child not in previousStageChildren and child not in taken: 57 if child not in previousStageChildren and child not in taken:
57 previousStageChildren.append(child) 58 previousStageChildren.append(child)
58 elif child in taken and noRecursion: 59 elif child in taken and noRecursion:

eric ide

mercurial