Skip to content

Commit

Permalink
Merge pull request #252 from RazinShaikh/remove-id-typo
Browse files Browse the repository at this point in the history
Fixing typo in the previous pr #251
  • Loading branch information
jvdwetering authored Jul 9, 2024
2 parents bad6ae2 + f1a9728 commit 34e14fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/basicrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def remove_id(g: BaseGraph[VT,ET], v: VT) -> bool:

neighbors = list(g.neighbors(v))
if len(neighbors) == 2:
v1, v2 = neighbors[0], neighbors[0]
v1, v2 = neighbors[0], neighbors[1]
else: # self loop
v1, v2 = neighbors[0], neighbors[0]
g.add_edge((v1,v2), edgetype=EdgeType.SIMPLE
Expand Down

0 comments on commit 34e14fc

Please sign in to comment.