Skip to content

Commit

Permalink
fixing typo in the previous pr zxcalc#251
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jul 8, 2024
1 parent bad6ae2 commit f1a9728
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 f1a9728

Please sign in to comment.