Skip to content

Commit f5d3701

Browse files
committed
Docsting suggestions by mkoeppe
1 parent c3aa9cd commit f5d3701

File tree

3 files changed

+26
-27
lines changed

3 files changed

+26
-27
lines changed

src/sage/matroids/circuits_matroid.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ cdef class CircuitsMatroid(Matroid):
419419
r"""
420420
Return the bases of the matroid.
421421
422-
OUTPUT: a SetSystem
422+
OUTPUT: a :class:`SetSystem`
423423
424424
EXAMPLES::
425425
@@ -478,7 +478,7 @@ cdef class CircuitsMatroid(Matroid):
478478
479479
- ``k`` -- an integer (optional); the length of the circuits
480480
481-
OUTPUT: a SetSystem
481+
OUTPUT: a :class:`SetSystem`
482482
483483
EXAMPLES::
484484
@@ -541,7 +541,7 @@ cdef class CircuitsMatroid(Matroid):
541541
"""
542542
Return the nonspanning circuits of the matroid.
543543
544-
OUTPUT: a SetSystem
544+
OUTPUT: a :class:`SetSystem`
545545
546546
EXAMPLES::
547547

src/sage/matroids/graphic_matroid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def _closure(self, X):
738738
739739
- ``X`` -- an iterable container of ground set elements
740740
741-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
741+
OUTPUT: a subset of the groundset as a :class:`frozenset`
742742
743743
EXAMPLES::
744744
@@ -789,7 +789,7 @@ def _max_independent(self, X):
789789
- ``X`` -- An object with Python's ``frozenset`` interface containing
790790
a subset of ``self.groundset()``
791791
792-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
792+
OUTPUT: a subset of the groundset as a :class:`frozenset`
793793
794794
EXAMPLES::
795795
@@ -828,7 +828,7 @@ def _max_coindependent(self, X):
828828
829829
- ``X`` -- an iterable container of ground set elements
830830
831-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
831+
OUTPUT: a subset of the groundset as a :class:`frozenset`
832832
833833
EXAMPLES::
834834
@@ -942,7 +942,7 @@ def _coclosure(self, X):
942942
943943
- ``X`` -- an iterable container of ground set elements
944944
945-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
945+
OUTPUT: a subset of the groundset as a :class:`frozenset`
946946
947947
EXAMPLES::
948948

src/sage/matroids/matroid.pyx

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ cdef class Matroid(SageObject):
531531
- ``X`` -- An object with Python's ``frozenset`` interface containing
532532
a subset of ``self.groundset()``.
533533
534-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
534+
OUTPUT: a subset of the groundset as a :class:`frozenset`
535535
536536
EXAMPLES::
537537
@@ -620,7 +620,7 @@ cdef class Matroid(SageObject):
620620
- ``X`` -- An object with Python's ``frozenset`` interface containing
621621
a subset of ``self.groundset()``.
622622
623-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
623+
OUTPUT: a subset of the groundset as a :class:`frozenset`
624624
625625
EXAMPLES::
626626
@@ -665,7 +665,7 @@ cdef class Matroid(SageObject):
665665
- ``X`` -- An object with Python's ``frozenset`` interface containing
666666
a subset of ``self.groundset()``.
667667
668-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
668+
OUTPUT: a subset of the groundset as a :class:`frozenset`
669669
670670
EXAMPLES::
671671
@@ -754,7 +754,7 @@ cdef class Matroid(SageObject):
754754
- ``X`` -- An object with Python's ``frozenset`` interface containing
755755
a subset of ``self.groundset()``.
756756
757-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
757+
OUTPUT: a subset of the groundset as a :class:`frozenset`
758758
759759
EXAMPLES::
760760
@@ -785,7 +785,7 @@ cdef class Matroid(SageObject):
785785
- ``Y`` -- An object with Python's ``frozenset`` interface containing
786786
a subset of ``self.groundset()``, and disjoint from ``X``.
787787
788-
OUTPUT: ``frozenset`` instance containing a subset of the groundset
788+
OUTPUT: a subset of the groundset as a :class:`frozenset`
789789
790790
EXAMPLES::
791791
@@ -2274,7 +2274,7 @@ cdef class Matroid(SageObject):
22742274
"""
22752275
Return the circuits of the matroid.
22762276
2277-
OUTPUT: a SetSystem
2277+
OUTPUT: a :class:`SetSystem`
22782278
22792279
.. SEEALSO::
22802280
@@ -2336,7 +2336,7 @@ cdef class Matroid(SageObject):
23362336
A *nonspanning circuit* is a circuit whose rank is strictly smaller
23372337
than the rank of the matroid.
23382338
2339-
OUTPUT: a SetSystem
2339+
OUTPUT: a :class:`SetSystem`
23402340
23412341
.. SEEALSO::
23422342
@@ -2388,7 +2388,7 @@ cdef class Matroid(SageObject):
23882388
"""
23892389
Return the cocircuits of the matroid.
23902390
2391-
OUTPUT: a SetSystem
2391+
OUTPUT: a :class:`SetSystem`
23922392
23932393
.. SEEALSO::
23942394
@@ -2414,7 +2414,7 @@ cdef class Matroid(SageObject):
24142414
A *noncospanning cocircuit* is a cocircuit whose corank is strictly
24152415
smaller than the corank of the matroid.
24162416
2417-
OUTPUT: a SetSystem
2417+
OUTPUT: a :class:`SetSystem`
24182418
24192419
.. SEEALSO::
24202420
@@ -2503,7 +2503,7 @@ cdef class Matroid(SageObject):
25032503
A *nonbasis* is a set with cardinality ``self.full_rank()`` that is
25042504
not a basis.
25052505
2506-
OUTPUT: a SetSystem
2506+
OUTPUT: a :class:`SetSystem`
25072507
25082508
.. SEEALSO::
25092509
@@ -2617,7 +2617,7 @@ cdef class Matroid(SageObject):
26172617
26182618
A *basis* is a maximal independent set.
26192619
2620-
OUTPUT: a SetSystem
2620+
OUTPUT: a :class:`SetSystem`
26212621
26222622
EXAMPLES::
26232623
@@ -2884,7 +2884,7 @@ cdef class Matroid(SageObject):
28842884
28852885
- ``r`` -- A natural number.
28862886
2887-
OUTPUT: a SetSystem
2887+
OUTPUT: a :class:`SetSystem`
28882888
28892889
.. SEEALSO::
28902890
@@ -2910,7 +2910,7 @@ cdef class Matroid(SageObject):
29102910
29112911
- ``r`` -- a nonnegative integer
29122912
2913-
OUTPUT: a SetSystem
2913+
OUTPUT: a :class:`SetSystem`
29142914
29152915
.. SEEALSO::
29162916
@@ -3248,7 +3248,7 @@ cdef class Matroid(SageObject):
32483248
- ``invariant`` -- (optional) either a semigroup ``G`` whose
32493249
``__call__`` acts on the groundset, or pair ``(G, action)`` where
32503250
``G`` is a semigroup and ``action`` is a function ``action(g,e)``
3251-
which takes a pair of a group element and a grounset element and
3251+
which takes a pair of a group element and a groundset element and
32523252
returns the groundset element which is the result of ``e`` acted upon
32533253
by ``g``
32543254
@@ -5419,7 +5419,7 @@ cdef class Matroid(SageObject):
54195419
54205420
- ``None`` -- The most appropriate algorithm is chosen automatically.
54215421
- ``"intersection"`` -- an algorithm based on matroid intersection, equivalent
5422-
to calling ``is_kconnected(4,certificate)``.
5422+
to calling ``is_kconnected(4, certificate)``.
54235423
- ``"shifting"`` -- an algorithm based on the shifting algorithm [Raj1987]_.
54245424
54255425
OUTPUT: boolean, or a tuple ``(boolean, frozenset)``
@@ -5782,8 +5782,8 @@ cdef class Matroid(SageObject):
57825782
57835783
OUTPUT:
57845784
5785-
- `False, None` -- if there is no ``m``-separator
5786-
- `True, E` -- if there exist an ``m``-separator ``E``
5785+
- ``False, None`` -- if there is no ``m``-separator
5786+
- ``True, E`` -- if there exists an ``m``-separator ``E``
57875787
57885788
EXAMPLES::
57895789
@@ -6196,7 +6196,7 @@ cdef class Matroid(SageObject):
61966196
``False``, any output will represent ``self`` if and only if the
61976197
matroid is binary
61986198
6199-
OUTPUT: either a ``BinaryMatroid``, or ``None``
6199+
OUTPUT: either a :class:`BinaryMatroid`, or ``None``
62006200
62016201
ALGORITHM:
62026202
@@ -7765,7 +7765,6 @@ cdef class Matroid(SageObject):
77657765
77667766
:meth:`~sage.matroids.matroid.Matroid.whitney_numbers`
77677767
7768-
77697768
TESTS::
77707769
77717770
sage: M = Matroid(groundset=[0,1,2], circuits=[[0]])
@@ -7774,7 +7773,7 @@ cdef class Matroid(SageObject):
77747773
sage: l = -1
77757774
sage: for M in matroids.AllMatroids(6): # optional - matroid_database
77767775
....: r = M.rank()
7777-
....: assert M.characteristic_polynomial(l) == (-1)**r * M.tutte_polynomial(1-l, 0)
7776+
....: assert M.characteristic_polynomial(l) == (-1)**r * M.tutte_polynomial(1 - l, 0)
77787777
....: if not M.loops():
77797778
....: assert (-1)**r * M.characteristic_polynomial(l) == sum(M.broken_circuit_complex().f_vector())
77807779
"""

0 commit comments

Comments
 (0)