Skip to content

Commit 8a14b4c

Browse files
committed
updated is_brick()
1 parent 03771ee commit 8a14b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/graphs/matching_covered_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2924,7 +2924,7 @@ def is_brick(self, coNP_certificate=False):
29242924

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

0 commit comments

Comments
 (0)