From 6fe61f8382e355e93c9e38832e21c07c44d4496e Mon Sep 17 00:00:00 2001 From: janmenjayap Date: Sun, 10 Nov 2024 19:21:51 +0530 Subject: [PATCH] updated the doctest of has_loops() --- src/sage/graphs/matching_covered_graph.py | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/sage/graphs/matching_covered_graph.py b/src/sage/graphs/matching_covered_graph.py index 6d4bb1ff439..86bb5148378 100644 --- a/src/sage/graphs/matching_covered_graph.py +++ b/src/sage/graphs/matching_covered_graph.py @@ -1967,14 +1967,6 @@ def has_loops(self): Traceback (most recent call last): ... ValueError: loops are not allowed in matching covered graphs - sage: G.loops() - [] - sage: G.loop_edges() - [] - sage: G.loop_vertices() - [] - sage: G.number_of_loops() - 0 A matching covered graph may support multiple edges, still no loops are allowed:: @@ -1995,15 +1987,11 @@ def has_loops(self): False sage: G.has_loops() False - sage: G.loops() - [] - sage: G.loop_edges() - [] - sage: G.loop_vertices() - [] - sage: G.number_of_loops() - 0 - + sage: G.allow_loops(True) + Traceback (most recent call last): + ... + ValueError: loops are not allowed in matching covered graphs + .. SEEALSO:: :meth:`~sage.graphs.matching_covered_graph.MatchingCoveredGraph.allow_loops`,