Skip to content

Commit

Permalink
test to check that sagemath#38159 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Jun 13, 2024
1 parent f7d67f1 commit 94e3671
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 @@ -619,6 +618,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 94e3671

Please sign in to comment.