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

Commit 1d25896

Browse files
committed
trac #32095: avoid using set_random_seed
1 parent 89c210e commit 1d25896

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sage/graphs/digraph.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,10 @@ def diameter(self, by_weight=False, algorithm=None, weight_function=None,
24932493
24942494
:trac:`32095` is fixed::
24952495
2496-
sage: set_random_seed(4)
2497-
sage: G = graphs.RandomGNP(40, 0.4).to_directed()
2496+
sage: g6 = 'guQOUOQCW[IaDBCVP_IE\\RfxV@WMSaeHgheEIA@tfOJkB~@EpGLCrs'
2497+
sage: g6 += 'aPIpwgQI_`Abs_x?VWxNJAo@w\\hffCDAW]bYGMIZGC_PYOrIw[Gp['
2498+
sage: g6 += '@FTgc_O}E?fXAnGCB{gSaUcD'
2499+
sage: G = Graph(g6).to_directed()
24982500
sage: G.diameter(algorithm='DiFUB', by_weight=False)
24992501
3
25002502
sage: G.diameter(algorithm='DiFUB', by_weight=True)

0 commit comments

Comments
 (0)