Skip to content

Commit 61f6748

Browse files
committed
Suggestions by kwankyu
1 parent a91ddfe commit 61f6748

16 files changed

+86
-88
lines changed

src/sage/matroids/basis_matroid.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ cdef class BasisMatroid(BasisExchangeMatroid):
136136
"""
137137
def __init__(self, M=None, groundset=None, bases=None, nonbases=None, rank=None):
138138
"""
139-
See class definition for full documentation.
139+
See the class definition for full documentation.
140140
141141
EXAMPLES::
142142
@@ -1086,9 +1086,9 @@ cdef class BasisMatroid(BasisExchangeMatroid):
10861086
10871087
.. WARNING::
10881088
1089-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
1090-
__eq__/__ne__ (in Python). If you override one, you should (and in
1091-
Cython: MUST) override the other!
1089+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
1090+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
1091+
should (and, in Cython, \emph{must}) override the other!
10921092
10931093
EXAMPLES::
10941094

src/sage/matroids/circuit_closures_matroid.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ cdef class CircuitClosuresMatroid(Matroid):
127127

128128
def __init__(self, M=None, groundset=None, circuit_closures=None):
129129
"""
130-
Initialization of the matroid. See class docstring for full
130+
Initialization of the matroid. See the class docstring for full
131131
documentation.
132132
133133
EXAMPLES::
@@ -427,9 +427,9 @@ cdef class CircuitClosuresMatroid(Matroid):
427427
428428
.. WARNING::
429429
430-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
431-
__eq__/__ne__ (in Python). If you override one, you should
432-
(and in Cython: MUST) override the other!
430+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
431+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
432+
should (and, in Cython, \emph{must}) override the other!
433433
434434
EXAMPLES::
435435

src/sage/matroids/circuits_matroid.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cdef class CircuitsMatroid(Matroid):
5757

5858
def __init__(self, M=None, groundset=None, circuits=None, nsc_defined=False):
5959
"""
60-
Initialization of the matroid. See class docstring for full
60+
Initialization of the matroid. See the class docstring for full
6161
documentation.
6262
6363
TESTS::
@@ -320,9 +320,9 @@ cdef class CircuitsMatroid(Matroid):
320320
321321
.. WARNING::
322322
323-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
324-
__eq__/__ne__ (in Python). If you override one, you should
325-
(and in Cython: MUST) override the other!
323+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
324+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
325+
should (and, in Cython, \emph{must}) override the other!
326326
327327
EXAMPLES::
328328

src/sage/matroids/dual_matroid.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class DualMatroid(Matroid):
8383

8484
def __init__(self, matroid):
8585
"""
86-
See class definition for documentation.
86+
See the class definition for documentation.
8787
8888
EXAMPLES::
8989
@@ -400,9 +400,9 @@ def __hash__(self):
400400
401401
.. WARNING::
402402
403-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
404-
__eq__/__ne__ (in Python). If you override one, you should (and in
405-
Cython: MUST) override the other!
403+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
404+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
405+
should (and, in Cython, \emph{must}) override the other!
406406
407407
EXAMPLES::
408408

src/sage/matroids/extension.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ cdef class LinearSubclasses:
301301
"""
302302
def __init__(self, M, line_length=None, subsets=None, splice=None):
303303
"""
304-
See class docstring for full documentation.
304+
See the class docstring for full documentation.
305305
306306
EXAMPLES::
307307
@@ -466,7 +466,7 @@ cdef class MatroidExtensions(LinearSubclasses):
466466
"""
467467
def __init__(self, M, e, line_length=None, subsets=None, splice=None, orderly=False):
468468
"""
469-
See class docstring for full documentation.
469+
See the class docstring for full documentation.
470470
471471
EXAMPLES::
472472

src/sage/matroids/flats_matroid.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cdef class FlatsMatroid(Matroid):
5555

5656
def __init__(self, M=None, groundset=None, flats=None):
5757
"""
58-
Initialization of the matroid. See class docstring for full
58+
Initialization of the matroid. See the class docstring for full
5959
documentation.
6060
6161
TESTS::
@@ -279,9 +279,9 @@ cdef class FlatsMatroid(Matroid):
279279
280280
.. WARNING::
281281
282-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
283-
__eq__/__ne__ (in Python). If you override one, you should
284-
(and in Cython: MUST) override the other!
282+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
283+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
284+
should (and, in Cython, \emph{must}) override the other!
285285
286286
EXAMPLES::
287287

src/sage/matroids/gammoid.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Gammoid(Matroid):
5959
6060
INPUT:
6161
62-
- ``D`` -- a loopless DiGraph representing the gammoid
62+
- ``D`` -- a loopless digraph representing the gammoid
6363
- ``roots`` -- a subset of the vertices
6464
- ``groundset`` -- (optional) a subset of the vertices
6565
@@ -89,7 +89,7 @@ class Gammoid(Matroid):
8989

9090
def __init__(self, D, roots, groundset=None):
9191
"""
92-
See class definition for full documentation.
92+
See the class definition for full documentation.
9393
9494
EXAMPLES::
9595
@@ -203,9 +203,9 @@ def __hash__(self):
203203
204204
.. WARNING::
205205
206-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
207-
__eq__/__ne__ (in Python). If you override one, you should (and in
208-
Cython: MUST) override the other!
206+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
207+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
208+
should (and, in Cython, \emph{must}) override the other!
209209
210210
EXAMPLES::
211211
@@ -319,7 +319,7 @@ def __reduce__(self):
319319

320320
def digraph(self):
321321
"""
322-
Return the DiGraph associated with the gammoid.
322+
Return the digraph associated with the gammoid.
323323
324324
EXAMPLES::
325325

src/sage/matroids/graphic_matroid.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ cdef class GraphicMatroid(Matroid):
152152

153153
def __init__(self, G, groundset=None):
154154
"""
155-
See class definition for full documentation.
155+
See the class definition for full documentation.
156156
157157
EXAMPLES::
158158
@@ -342,9 +342,9 @@ cdef class GraphicMatroid(Matroid):
342342
343343
.. WARNING::
344344
345-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
346-
__eq__/__ne__ (in Python). If you override one, you should (and in
347-
Cython: MUST) override the other!
345+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
346+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
347+
should (and, in Cython, \emph{must}) override the other!
348348
349349
EXAMPLES::
350350

src/sage/matroids/lean_matrix.pyx

+6-6
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ cdef class GenericMatrix(LeanMatrix):
673673

674674
def __init__(self, long nrows, long ncols, M=None, ring=None):
675675
"""
676-
See class docstring for full information.
676+
See the class docstring for full information.
677677
678678
EXAMPLES::
679679
@@ -982,7 +982,7 @@ cdef class BinaryMatrix(LeanMatrix):
982982

983983
def __init__(self, long m, long n, object M=None, object ring=None):
984984
"""
985-
See class docstring for full specification.
985+
See the class docstring for full specification.
986986
987987
EXAMPLES::
988988
@@ -1605,7 +1605,7 @@ cdef class TernaryMatrix(LeanMatrix):
16051605

16061606
def __init__(self, long m, long n, M=None, ring=None):
16071607
"""
1608-
See class docstring for full specification.
1608+
See the class docstring for full specification.
16091609
16101610
EXAMPLES::
16111611
@@ -2157,7 +2157,7 @@ cdef class QuaternaryMatrix(LeanMatrix):
21572157

21582158
def __init__(self, long m, long n, M=None, ring=None):
21592159
"""
2160-
See class docstring for full specification.
2160+
See the class docstring for full specification.
21612161
21622162
EXAMPLES::
21632163
@@ -2775,7 +2775,7 @@ cdef class PlusMinusOneMatrix(LeanMatrix):
27752775

27762776
def __init__(self, long nrows, long ncols, M=None, ring=None):
27772777
"""
2778-
See class docstring for full information.
2778+
See the class docstring for full information.
27792779
27802780
EXAMPLES::
27812781
@@ -3209,7 +3209,7 @@ cdef class RationalMatrix(LeanMatrix):
32093209

32103210
def __init__(self, long nrows, long ncols, M=None, ring=None):
32113211
"""
3212-
See class docstring for full information.
3212+
See the class docstring for full information.
32133213
32143214
EXAMPLES::
32153215

src/sage/matroids/linear_matroid.pyx

+8-8
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
259259
"""
260260
def __init__(self, matrix=None, groundset=None, reduced_matrix=None, ring=None, keep_initial_representation=True):
261261
"""
262-
See class definition for full documentation.
262+
See the class definition for full documentation.
263263
264264
EXAMPLES::
265265
@@ -1285,9 +1285,9 @@ cdef class LinearMatroid(BasisExchangeMatroid):
12851285
12861286
.. WARNING::
12871287
1288-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
1289-
__eq__/__ne__ (in Python). If you override one, you should (and in
1290-
Cython: MUST) override the other!
1288+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
1289+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
1290+
should (and, in Cython, \emph{must}) override the other!
12911291
12921292
EXAMPLES::
12931293
@@ -3078,7 +3078,7 @@ cdef class BinaryMatroid(LinearMatroid):
30783078
"""
30793079
def __init__(self, matrix=None, groundset=None, reduced_matrix=None, ring=None, keep_initial_representation=True, basis=None):
30803080
"""
3081-
See class definition for full documentation.
3081+
See the class definition for full documentation.
30823082
30833083
.. NOTE::
30843084
@@ -4111,7 +4111,7 @@ cdef class TernaryMatroid(LinearMatroid):
41114111
"""
41124112
def __init__(self, matrix=None, groundset=None, reduced_matrix=None, ring=None, keep_initial_representation=True, basis=None):
41134113
"""
4114-
See class definition for full documentation.
4114+
See the class definition for full documentation.
41154115
41164116
.. NOTE::
41174117
@@ -4989,7 +4989,7 @@ cdef class QuaternaryMatroid(LinearMatroid):
49894989
"""
49904990
def __init__(self, matrix=None, groundset=None, reduced_matrix=None, ring=None, keep_initial_representation=True, basis=None):
49914991
"""
4992-
See class definition for full documentation.
4992+
See the class definition for full documentation.
49934993
49944994
.. NOTE::
49954995
@@ -5694,7 +5694,7 @@ cdef class RegularMatroid(LinearMatroid):
56945694
"""
56955695
def __init__(self, matrix=None, groundset=None, reduced_matrix=None, ring=None, keep_initial_representation=True):
56965696
"""
5697-
See class definition for full documentation.
5697+
See the class definition for full documentation.
56985698
56995699
.. NOTE::
57005700

src/sage/matroids/matroid.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -3944,9 +3944,9 @@ cdef class Matroid(SageObject):
39443944
39453945
.. WARNING::
39463946
3947-
This method is linked to ``__richcmp__`` (in Cython) and
3948-
``__cmp__`` or ``__eq__``/``__ne__`` (in Python). If you override
3949-
one, you should (and in Cython: MUST) override the other!
3947+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
3948+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
3949+
should (and, in Cython, \emph{must}) override the other!
39503950
39513951
EXAMPLES::
39523952

src/sage/matroids/minor_matroid.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class wraps around any matroid to provide an abstract minor. It
127127

128128
def __init__(self, matroid, contractions=None, deletions=None):
129129
"""
130-
See class docstring for documentation.
130+
See the class docstring for documentation.
131131
132132
EXAMPLES::
133133
@@ -372,9 +372,9 @@ def __hash__(self):
372372
373373
.. WARNING::
374374
375-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
376-
__eq__/__ne__ (in Python). If you override one, you should (and in
377-
Cython: MUST) override the other!
375+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
376+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
377+
should (and, in Cython, \emph{must}) override the other!
378378
379379
EXAMPLES::
380380

src/sage/matroids/rank_matroid.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ def __hash__(self):
142142
143143
.. WARNING::
144144
145-
This method is linked to __richcmp__ (in Cython) and __cmp__ or
146-
__eq__/__ne__ (in Python). If you override one, you should (and in
147-
Cython: MUST) override the other!
145+
This method is linked to ``__richcmp__`` (in Cython) and ``__cmp__``
146+
or ``__eq__``/``__ne__`` (in Python). If you override one, you
147+
should (and, in Cython, \emph{must}) override the other!
148148
149149
EXAMPLES::
150150

src/sage/matroids/transversal_matroid.pyx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Transversal matroids
33
44
A transversal matroid arises from a groundset `E` and a collection `A` of sets
55
over the groundset. This can be modeled as a bipartite graph `B`, where the
6-
vertices the left are groundset elements, the vertices on the right are the
6+
vertices on the left are groundset elements, the vertices on the right are the
77
sets, and edges represent containment. Then a set `X` from the groundset is
88
independent if and only if `X` has a matching in `B`.
99
@@ -100,7 +100,7 @@ cdef class TransversalMatroid(BasisExchangeMatroid):
100100

101101
def __init__(self, sets, groundset=None, set_labels=None, matching=None):
102102
"""
103-
See class definition for full documentation.
103+
See the class definition for full documentation.
104104
105105
EXAMPLES::
106106
@@ -850,8 +850,6 @@ cdef class TransversalMatroid(BasisExchangeMatroid):
850850
parameter. This checks that the matching provided is indeed a matching, fits in
851851
the set system, and is maximal.
852852
853-
OUTPUT: boolean
854-
855853
EXAMPLES::
856854
857855
sage: from sage.matroids.transversal_matroid import *

0 commit comments

Comments
 (0)