Skip to content

Commit

Permalink
fixed comment for deletion of edges in undirected graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen-kuehn committed Jul 26, 2018
1 parent d3aef46 commit d339d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphi/types/adjacency_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __setitem__(self, item, value):
# if we know node already, clean up first
if item in self._adjacency:
for node_to in self._adjacency[item]:
del self._adjacency[node_to][item] # safe unless graph not undirected
del self._adjacency[node_to][item] # safe if graph undirected
for node_to in value:
self._adjacency[node_to][item] = value[node_to]
self._adjacency[item] = dict(value)
Expand Down

0 comments on commit d339d46

Please sign in to comment.