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

Commit

Permalink
trac #26578: fix doctests in digraph_generators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Oct 30, 2018
1 parent 9814a1b commit e4be7c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/graphs/digraph_generators.py
Expand Up @@ -422,7 +422,7 @@ def TransitiveTournament(self, n):
sage: digraphs.TransitiveTournament(-1)
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
ValueError: the number of vertices cannot be strictly negative
"""
g = DiGraph(n)
g.name("Transitive Tournament")
Expand Down Expand Up @@ -458,7 +458,7 @@ def RandomTournament(self, n):
sage: digraphs.RandomTournament(-1)
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
ValueError: the number of vertices cannot be strictly negative
.. SEEALSO::
Expand Down Expand Up @@ -607,7 +607,7 @@ def Complete(self, n, loops=False):
sage: digraphs.Complete(-1)
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
ValueError: the number of vertices cannot be strictly negative
"""
G = DiGraph(n, name="Complete digraph"+(" with loops" if loops else ''), loops=loops)

Expand Down Expand Up @@ -1410,7 +1410,7 @@ def RandomSemiComplete(self, n):
sage: digraphs.RandomSemiComplete(-1)
Traceback (most recent call last):
...
ValueError: The number of vertices cannot be strictly negative!
ValueError: the number of vertices cannot be strictly negative
"""
G = DiGraph(n, name="Random Semi-Complete digraph")

Expand Down

0 comments on commit e4be7c5

Please sign in to comment.