Skip to content

Commit

Permalink
self loop support: avoid deleting self edges twice
Browse files Browse the repository at this point in the history
RazinShaikh committed Jun 26, 2024
1 parent c7e62f6 commit 61ac585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/graph/multigraph.py
Original file line number Diff line number Diff line change
@@ -244,7 +244,7 @@ def remove_edge(self, edge):

if e.is_empty():
del self.graph[s][t]
del self.graph[t][s]
if s != t: del self.graph[t][s]

self.nedges -= 1

0 comments on commit 61ac585

Please sign in to comment.