Lines 2086-2093
Link Here
|
2086 |
if not circular_blocks: |
2086 |
if not circular_blocks: |
2087 |
circular_blocks = True |
2087 |
circular_blocks = True |
2088 |
blocker_deps = myblockers.leaf_nodes() |
2088 |
blocker_deps = myblockers.leaf_nodes() |
2089 |
if blocker_deps: |
2089 |
while blocker_deps: |
2090 |
selected_nodes = [blocker_deps.pop()] |
2090 |
# Some of these nodes might have already been selected |
|
|
2091 |
# by the normal node selection process after the |
2092 |
# circular_blocks flag has been set. Therefore, we |
2093 |
# have to verify that they're still in the graph so |
2094 |
# that they're not selected more than once. |
2095 |
node = blocker_deps.pop() |
2096 |
if mygraph.contains(node): |
2097 |
selected_nodes = [node] |
2098 |
break |
2091 |
|
2099 |
|
2092 |
if not selected_nodes: |
2100 |
if not selected_nodes: |
2093 |
# No leaf nodes are available, so we have a circular |
2101 |
# No leaf nodes are available, so we have a circular |