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

Commit

Permalink
trac #19253: add seealso section between complete, randomtournament a…
Browse files Browse the repository at this point in the history
…nd randomsemicomplete
  • Loading branch information
dcoudert committed Sep 20, 2015
1 parent 7a8a54c commit e45b71b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sage/graphs/digraph_generators.py
Expand Up @@ -400,6 +400,12 @@ def RandomTournament(self, n):
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
.. SEEALSO::
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.Complete`
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.RandomSemiComplete`
"""
from sage.misc.prandom import random
g = DiGraph(n)
Expand Down Expand Up @@ -539,6 +545,12 @@ def Complete(self, n, loops=False):
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
.. SEEALSO::
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.RandomSemiComplete`
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.RandomTournament`
"""
G = DiGraph(n, name="Complete digraph"+(" with loops" if loops else ''), loops=loops)

Expand Down Expand Up @@ -1268,6 +1280,12 @@ def RandomSemiComplete(self, n):
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
.. SEEALSO::
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.Complete`
* :meth:`~sage.graphs.digraph_generator.DiGraphGenerators.RandomTournament`
"""
G = DiGraph(n, name="Random Semi-Complete digraph")
if n==0:
Expand Down

0 comments on commit e45b71b

Please sign in to comment.