Skip to content

Commit

Permalink
updated is_brick()
Browse files Browse the repository at this point in the history
  • Loading branch information
janmenjayap committed Dec 21, 2024
1 parent 03771ee commit 8a14b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/graphs/matching_covered_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,7 @@ def is_brick(self, coNP_certificate=False):

# Find a nontrivial odd component
if all(len(c) % 2 for c in components):
nontrivial_odd_component = next((c for c in components if len(c) > 1), None)
nontrivial_odd_component = next(c for c in components if len(c) > 1)
else:
nontrivial_odd_component = components[0] + [two_vertex_cut[0]]

Expand Down

0 comments on commit 8a14b4c

Please sign in to comment.