Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
two more doctests in graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jul 12, 2021
1 parent d471e7e commit 430afa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/graph_decompositions/cutwidth.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def cutwidth(G, algorithm="exponential", cut_off=0, solver=None, verbose=False):
Comparison of algorithms::
sage: from sage.graphs.graph_decompositions.cutwidth import cutwidth
sage: for i in range(2): # long time
sage: for i in range(2): # long time # not tested, known bug (see :trac:`32131`)
....: G = graphs.RandomGNP(7, 0.3)
....: ve, le = cutwidth(G, algorithm="exponential")
....: vm, lm = cutwidth(G, algorithm="MILP", solver='GLPK')
Expand Down Expand Up @@ -640,7 +640,7 @@ def cutwidth_MILP(G, lower_bound=0, solver=None, verbose=0):
Comparison with exponential algorithm::
sage: from sage.graphs.graph_decompositions import cutwidth
sage: for i in range(2): # long time
sage: for i in range(2): # long time # not tested, known bug (see :trac:`32131`)
....: G = graphs.RandomGNP(7, 0.3)
....: ve, le = cutwidth.cutwidth_dyn(G)
....: vm, lm = cutwidth.cutwidth_MILP(G, solver='GLPK')
Expand Down
2 changes: 1 addition & 1 deletion src/sage/graphs/spanning_tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ cpdef kruskal(G, wfunction=None, bint check=False):
sage: def my_disconnected_graph(n, ntries, directed=False, multiedges=False, loops=False):
....: G = Graph()
....: k = randint(1, n)
....: k = randint(2, n)
....: G.add_vertices(range(k))
....: if directed:
....: G = G.to_directed()
Expand Down

0 comments on commit 430afa9

Please sign in to comment.