Skip to content

Commit cb4d3d1

Browse files
committed
updated the return statement of is_brick()
1 parent b8fdab8 commit cb4d3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/matching_covered_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,7 @@ def is_brick(self, coNP_certificate=False):
28852885
for u, v, w in self.edge_iterator()
28862886
if (u in nontrivial_odd_component) ^ (v in nontrivial_odd_component)]
28872887

2888-
return False, C, nontrivial_odd_component
2888+
return (False, C, set(nontrivial_odd_component))
28892889

28902890
# Check if G is 3-connected
28912891
if self.is_triconnected():
@@ -2933,7 +2933,7 @@ def is_brick(self, coNP_certificate=False):
29332933
if (u in nontrivial_odd_component) ^ (v in nontrivial_odd_component)]
29342934

29352935
# Edge (u, v, w) in C are formatted so that u is in a nontrivial odd component
2936-
return (False, C, nontrivial_odd_component) if coNP_certificate else False
2936+
return (False, C, set(nontrivial_odd_component)) if coNP_certificate else False
29372937

29382938
@doc_index('Overwritten methods')
29392939
def loop_edges(self, labels=True):

0 commit comments

Comments
 (0)