Skip to content

Commit

Permalink
corrected clearing of adjacency graph
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen-kuehn committed Jul 26, 2018
1 parent 9c01bf3 commit b51033e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphi/types/adjacency_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def update(self, other):
self.add(node)

def clear(self):
for node in self:
self._adjacency[node].clear()
self._adjacency = type(self._adjacency)()

def edges(self):
return EdgeView(self)
Expand Down

0 comments on commit b51033e

Please sign in to comment.