Skip to content

Commit

Permalink
updated the doctest of number_of_loops()
Browse files Browse the repository at this point in the history
  • Loading branch information
janmenjayap committed Nov 10, 2024
1 parent 023b05a commit a2b4a9d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/sage/graphs/matching_covered_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2276,18 +2276,10 @@ def number_of_loops(self):
sage: G = MatchingCoveredGraph(T)
sage: G
Matching covered truncated biwheel graph: graph on 10 vertices
sage: G.has_loops()
False
sage: G.allows_loops()
False
sage: G.add_edge(0, 0)
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()
Expand All @@ -2311,14 +2303,6 @@ def number_of_loops(self):
(1, 2, None), (1, 6, None), (2, 3, None), (2, 7, None),
(3, 4, None), (3, 6, None), (4, 5, None), (4, 7, None),
(5, 6, None)]
sage: G.allows_loops()
False
sage: G.has_loops()
False
sage: G.loops()
[]
sage: G.loop_edges()
[]
sage: G.loop_vertices()
[]
sage: G.number_of_loops()
Expand Down

0 comments on commit a2b4a9d

Please sign in to comment.