Skip to content

Commit 57bd5b8

Browse files
author
Release Manager
committed
gh-35551: Enable access to some methods in sage/graphs/graph_decompositions ### 📚 Description Files `src/sage/graphs/graph_decompositions/bandwidth.pyx` and `src/sage/graphs/graph_decompositions/cutwidth.pyx` were missing the statement `cython: binding=True`. So these methods were hardly accessible. We add the instruction and provide access in graphs. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies URL: #35551 Reported by: David Coudert Reviewer(s): Frédéric Chapoton
2 parents a919389 + 7b5752e commit 57bd5b8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/sage/graphs/graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9987,6 +9987,8 @@ def bipartite_double(self, extended=False):
99879987
from sage.graphs.graph_decompositions.vertex_separation import pathwidth
99889988
from sage.graphs.graph_decompositions.tree_decomposition import treelength
99899989
from sage.graphs.graph_decompositions.clique_separators import atoms_and_clique_separators
9990+
from sage.graphs.graph_decompositions.bandwidth import bandwidth
9991+
from sage.graphs.graph_decompositions.cutwidth import cutwidth
99909992
from sage.graphs.matchpoly import matching_polynomial
99919993
from sage.graphs.cliquer import all_max_clique as cliques_maximum
99929994
from sage.graphs.cliquer import all_cliques

src/sage/graphs/graph_decompositions/bandwidth.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: binding=True
12
r"""
23
Bandwidth of undirected graphs
34

src/sage/graphs/graph_decompositions/cutwidth.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: binding=True
12
r"""
23
Cutwidth
34

0 commit comments

Comments
 (0)