Skip to content

Commit

Permalink
Update swmmanywhere/graph_utilities.py
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Alonso Álvarez <6095790+dalonsoa@users.noreply.github.com>
  • Loading branch information
barneydobson and dalonsoa authored Apr 25, 2024
1 parent 7212423 commit ca84160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swmmanywhere/graph_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def __call__(self,
edges_to_remove.add((u, v, keys))
elif data.get(omit, None):
edges_to_remove.add((u, v, keys))
for u, v, keys in edges_to_remove:
G.remove_edge(u, v, keys)
for edges in edges_to_remove:
G.remove_edge(*edges)
return G

@register_graphfcn
Expand Down

0 comments on commit ca84160

Please sign in to comment.