Skip to content

Commit

Permalink
bug fix in update_edge_curves: if edge not in edge_map, continue
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jul 8, 2024
1 parent 313c89f commit 1be3b0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zxlive/graphscene.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def update_graph(self, new: GraphT, select_new: bool = False) -> None:
def update_edge_curves(self, s: VT, t: VT) -> None:
edges = []
for e in set(self.g.edges(s, t)):
if e not in self.edge_map:
continue
for i in self.edge_map[e]:
edges.append(self.edge_map[e][i])
midpoint_index = 0.5 * (len(edges) - 1)
Expand Down

0 comments on commit 1be3b0e

Please sign in to comment.