Skip to content

Commit 94e3671

Browse files
committed
test to check that #38159 is fixed
1 parent f7d67f1 commit 94e3671

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
@@ -619,6 +618,12 @@ def treewidth(g, k=None, kmin=None, certificate=False, algorithm=None, nice=Fals
619618
sage: g.treewidth(algorithm='sage', certificate=True, kmin=4)
620619
Tree decomposition: Graph on 4 vertices
621620
621+
Check that :issue:`38159` is fixed ::
622+
623+
sage: G = Graph('I~~}vPlr_')
624+
sage: G.treewidth(algorithm='sage') == G.treewidth(algorithm='tdlib') # optional - tdlib
625+
True
626+
622627
Trivially true::
623628
624629
sage: graphs.PetersenGraph().treewidth(k=35)

0 commit comments

Comments
 (0)