From 41e46b40fcf1c518f5622fa368bcbabb7dd7c8a1 Mon Sep 17 00:00:00 2001 From: janmenjayap Date: Tue, 5 Nov 2024 22:35:50 +0530 Subject: [PATCH] updated the doctests for add_edges() --- src/sage/graphs/matching_covered_graph.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sage/graphs/matching_covered_graph.py b/src/sage/graphs/matching_covered_graph.py index 9e4ae0d38f7..8207842d346 100644 --- a/src/sage/graphs/matching_covered_graph.py +++ b/src/sage/graphs/matching_covered_graph.py @@ -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):