Commit 3237d802 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Rename variable

parent 7f15d0ab
...@@ -185,10 +185,10 @@ class DirectedGraph(object): ...@@ -185,10 +185,10 @@ class DirectedGraph(object):
childpairs = \ childpairs = \
[(c1, c2) for c1 in neighbors for c2 in neighbors if c1 != c2] [(c1, c2) for c1 in neighbors for c2 in neighbors if c1 != c2]
for pair in childpairs: for child1, child2 in childpairs:
if self.has_path(pair[0], pair[1]) \ if self.has_path(child1, child2) \
and not self.has_path(pair[0], from_node): and not self.has_path(child1, from_node):
removals.add((from_node, pair[1])) removals.add((from_node, child2))
for edge in removals: for edge in removals:
self.remove_edge(edge[0], edge[1]) self.remove_edge(edge[0], edge[1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment