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

Rename variable

parent 7f15d0ab
......@@ -185,10 +185,10 @@ class DirectedGraph(object):
childpairs = \
[(c1, c2) for c1 in neighbors for c2 in neighbors if c1 != c2]
for pair in childpairs:
if self.has_path(pair[0], pair[1]) \
and not self.has_path(pair[0], from_node):
removals.add((from_node, pair[1]))
for child1, child2 in childpairs:
if self.has_path(child1, child2) \
and not self.has_path(child1, from_node):
removals.add((from_node, child2))
for edge in removals:
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