Skip to content

Commit

Permalink
#39151: add missing doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Jan 10, 2025
1 parent d9402b1 commit 2b8f836
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sage/graphs/generic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19021,6 +19021,10 @@ def breadth_first_search(self, start, ignore_direction=False,
Traceback (most recent call last):
...
ValueError: the start vertex is in the set of forbidden vertices
sage: list(G.breadth_first_search(0, forbidden_vertices=[0], distance=2))
Traceback (most recent call last):
...
ValueError: the start vertex is in the set of forbidden vertices
sage: list(G.breadth_first_search([0, 1], forbidden_vertices=[1]))
Traceback (most recent call last):
...
Expand Down Expand Up @@ -19204,6 +19208,10 @@ def depth_first_search(self, start, ignore_direction=False,
Traceback (most recent call last):
...
ValueError: the start vertex is in the set of forbidden vertices
sage: list(G.depth_first_search(0, forbidden_vertices=[0], edges=True))
Traceback (most recent call last):
...
ValueError: the start vertex is in the set of forbidden vertices
sage: list(G.depth_first_search([0, 1], forbidden_vertices=[1]))
Traceback (most recent call last):
...
Expand Down

0 comments on commit 2b8f836

Please sign in to comment.