Skip to content

Commit

Permalink
sagemathgh-38214: test that sagemath#38159 is fixed
Browse files Browse the repository at this point in the history
    
This will fix sagemath#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,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
sagemath#38163
    
URL: sagemath#38214
Reported by: Dima Pasechnik
Reviewer(s): David Coudert
  • Loading branch information
Release Manager committed Jun 15, 2024
2 parents c7598cf + 6b236b3 commit d5a4333
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sage/graphs/graph_decompositions/tree_decomposition.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ The treewidth of a clique is `n-1` and its treelength is 1::
- Approximation of treelength based on :meth:`~sage.graphs.graph.Graph.lex_M`
- Approximation of treelength based on BFS Layering
- upgrade tdlib to 0.9.0 :issue:`30813`
Methods
Expand Down Expand Up @@ -618,6 +617,12 @@ def treewidth(g, k=None, kmin=None, certificate=False, algorithm=None, nice=Fals
sage: g.treewidth(algorithm='sage', certificate=True, kmin=4)
Tree decomposition: Graph on 4 vertices
Check that :issue:`38159` is fixed ::
sage: G = Graph('I~~}vPlr_')
sage: G.treewidth(algorithm='sage') == G.treewidth(algorithm='tdlib') # optional - tdlib
True
Trivially true::
sage: graphs.PetersenGraph().treewidth(k=35)
Expand Down

0 comments on commit d5a4333

Please sign in to comment.