Skip to content

Commit efcf6f0

Browse files
committed
PR #35891: fix issue in src/sage/geometry/polyhedral_complex.py
1 parent 69803e0 commit efcf6f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/geometry/polyhedral_complex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ def connected_component(self, cell=None):
12341234
if v not in g:
12351235
raise ValueError(
12361236
"the polyhedral complex does not contain the given cell")
1237-
vertices = g.connected_component_containing_vertex(v)
1237+
vertices = g.connected_component_containing_vertex(v, sort=False)
12381238
facets = [f for f in self.maximal_cell_iterator()
12391239
if any(vf in f.vertices_matrix().columns()
12401240
for vf in vertices)]
@@ -1243,7 +1243,7 @@ def connected_component(self, cell=None):
12431243
if cell not in g:
12441244
raise ValueError(
12451245
"the polyhedral complex does not contain the given cell")
1246-
faces = g.connected_component_containing_vertex(cell)
1246+
faces = g.connected_component_containing_vertex(cell, sort=False)
12471247
facets = [f for f in self.maximal_cell_iterator()
12481248
if f in faces]
12491249
return PolyhedralComplex(facets, maximality_check=False,

0 commit comments

Comments
 (0)