Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #8744: better loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Dec 10, 2022
1 parent 3dfe5fb commit 8eb29c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/bipartite_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,8 @@ def add_edges(self, edges, loops=True):
# We update the bipartition
self.left.clear()
self.right.clear()
for v in vertex_in_left:
if vertex_in_left[v]:
for v, left in vertex_in_left.items():
if left:
self.left.add(v)
else:
self.right.add(v)
Expand Down

0 comments on commit 8eb29c8

Please sign in to comment.