Skip to content

Commit 11bf188

Browse files
author
Release Manager
committed
gh-38214: test that #38159 is fixed This will fix #38159 Add a missing test ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ x] The title is concise and informative. - [ x] The description explains in detail what this PR is about. - [ x] I have linked a relevant issue or discussion. - [ x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> #38163 URL: #38214 Reported by: Dima Pasechnik Reviewer(s): David Coudert
2 parents 883c168 + 6b236b3 commit 11bf188

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sage/graphs/graph_decompositions/tree_decomposition.pyx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ The treewidth of a clique is `n-1` and its treelength is 1::
8787
8888
- Approximation of treelength based on :meth:`~sage.graphs.graph.Graph.lex_M`
8989
- Approximation of treelength based on BFS Layering
90-
- upgrade tdlib to 0.9.0 :issue:`30813`
9190
9291
9392
Methods
@@ -618,6 +617,12 @@ def treewidth(g, k=None, kmin=None, certificate=False, algorithm=None, nice=Fals
618617
sage: g.treewidth(algorithm='sage', certificate=True, kmin=4)
619618
Tree decomposition: Graph on 4 vertices
620619
620+
Check that :issue:`38159` is fixed ::
621+
622+
sage: G = Graph('I~~}vPlr_')
623+
sage: G.treewidth(algorithm='sage') == G.treewidth(algorithm='tdlib') # optional - tdlib
624+
True
625+
621626
Trivially true::
622627
623628
sage: graphs.PetersenGraph().treewidth(k=35)

0 commit comments

Comments
 (0)