Skip to content

Commit

Permalink
updated the doctest of has_loops()
Browse files Browse the repository at this point in the history
  • Loading branch information
janmenjayap committed Nov 10, 2024
1 parent ca0f5cc commit 6fe61f8
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions src/sage/graphs/matching_covered_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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`,
Expand Down

0 comments on commit 6fe61f8

Please sign in to comment.