Skip to content

Commit

Permalink
Trac #34520: Remove randomly failing doctest in src/sage/graphs/gener…
Browse files Browse the repository at this point in the history
…ators/random.py

{{{
sage -t --random-seed=124699541928353137721504742146487601068
src/sage/graphs/generators/random.py
**********************************************************************
File "src/sage/graphs/generators/random.py", line 817, in
sage.graphs.generators.random.RandomHolmeKim
Failed example:
    G.subgraph_search(C3)
Expected:
    Subgraph of (): Graph on 3 vertices
Got:
    <BLANKLINE>
**********************************************************************
1 item had failures:
   1 of   6 in sage.graphs.generators.random.RandomHolmeKim
    [197 tests, 1 failure, 1.92 s]
}}}
See also https://trac.sagemath.org/ticket/32544#comment:33

URL: https://trac.sagemath.org/34520
Reported by: dcoudert
Ticket author(s): David Coudert
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager committed Sep 27, 2022
2 parents c8511ab + 1f4fdcd commit 12890b6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/sage/graphs/generators/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,19 +805,7 @@ def RandomHolmeKim(n, m, p, seed=None):
may not be all linked to a new node on the first iteration like the BA
model.
EXAMPLES:
We check that a random graph on 8 nodes with 2 random edges per node and a
probability `p = 0.5` of forming triangles contains a triangle::
sage: G = graphs.RandomHolmeKim(8, 2, 0.5)
sage: G.order(), G.size()
(8, 12)
sage: C3 = graphs.CycleGraph(3)
sage: G.subgraph_search(C3)
Subgraph of (): Graph on 3 vertices
::
EXAMPLES::
sage: G = graphs.RandomHolmeKim(12, 3, .3)
sage: G.show() # long time
Expand Down

0 comments on commit 12890b6

Please sign in to comment.