Skip to content

Commit

Permalink
updated the doctests for add_edges()
Browse files Browse the repository at this point in the history
  • Loading branch information
janmenjayap committed Nov 5, 2024
1 parent abb1b56 commit 41e46b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sage/graphs/matching_covered_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,11 +1260,16 @@ def add_edges(self, edges, loops=False):
sage: H = graphs.HexahedralGraph()
sage: G = MatchingCoveredGraph(H)
sage: F = {(0, 5), (2, 7)}
sage: F = [(3, 8), (6, 9), (8, 9)]
sage: G.add_edges(F)
Traceback (most recent call last):
...
ValueError: the resulting graph after the addition ofthe edges is not matching covered
sage: I = [(0, 8), (1, 9)]
sage: G.add_edges(I)
Traceback (most recent call last):
...
ValueError: the resulting graph after the addition ofthe edges is not matching covered
sage: J = [(u, 8) for u in range(8)]
sage: G.add_edges(J)
Traceback (most recent call last):
Expand Down

0 comments on commit 41e46b4

Please sign in to comment.