summaryrefslogtreecommitdiffstats
path: root/ipapython/graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/graph.py')
-rw-r--r--ipapython/graph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/graph.py b/ipapython/graph.py
index 0e06a0831..6b31c915c 100644
--- a/ipapython/graph.py
+++ b/ipapython/graph.py
@@ -44,8 +44,8 @@ class Graph(object):
# delete _adjacencies
del self._adj[vertex]
- for key, _adj in self._adj.items():
- _adj[:] = [v for v in _adj if v != vertex]
+ for adj in self._adj.values():
+ adj[:] = [v for v in adj if v != vertex]
# delete edges
edges = [e for e in self.edges if e[0] != vertex and e[1] != vertex]