Skip to content

Commit 15e24ee

Browse files
author
Release Manager
committed
sagemathgh-39155: Salvage work on gammoids Add matroid classes `Gammoid` and `TransversalMatroid`. Transversal matroids are also gammoids. From the archived [sagetrac- mirror](https://github.com/sagemath/sagetrac-mirror) repository (branches [public/matroids/transversal_matroids- 23536](https://github.com/sagemath/sagetrac- mirror/tree/public/matroids/transversal_matroids-23536) and [u/zgershkoff/gammoids](https://github.com/sagemath/sagetrac- mirror/tree/u/zgershkoff/gammoids)). Resolves sagemath#23536, resolves sagemath#23601, resolves sagemath#23628. URL: sagemath#39155 Reported by: gmou3 Reviewer(s): Kwankyu Lee
2 parents 2b082f2 + 61f6748 commit 15e24ee

20 files changed

+1692
-94
lines changed

src/doc/en/reference/matroids/index.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ Concrete implementations
2727
:maxdepth: 1
2828

2929
sage/matroids/basis_matroid
30-
sage/matroids/circuits_matroid
3130
sage/matroids/circuit_closures_matroid
31+
sage/matroids/circuits_matroid
3232
sage/matroids/flats_matroid
33+
sage/matroids/gammoid
34+
sage/matroids/graphic_matroid
3335
sage/matroids/linear_matroid
3436
sage/matroids/rank_matroid
35-
sage/matroids/graphic_matroid
37+
sage/matroids/transversal_matroid
3638

3739
Chow rings of matroids
3840
----------------------
@@ -49,9 +51,9 @@ Abstract matroid classes
4951
.. toctree::
5052
:maxdepth: 1
5153

54+
sage/matroids/basis_exchange_matroid
5255
sage/matroids/dual_matroid
5356
sage/matroids/minor_matroid
54-
sage/matroids/basis_exchange_matroid
5557

5658
Advanced functionality
5759
----------------------
@@ -60,8 +62,8 @@ Advanced functionality
6062
:maxdepth: 1
6163

6264
sage/matroids/advanced
63-
sage/matroids/utilities
6465
sage/matroids/extension
66+
sage/matroids/utilities
6567

6668
Internals
6769
---------

src/doc/en/reference/references/index.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ REFERENCES:
872872
.. [BrHu2019] Petter Brändén, June Huh. *Lorentzian polynomials*.
873873
Ann. Math. (2) 192, No. 3, 821-891 (2020).
874874
:arxiv:`1902.03719`, :doi:`10.4007/annals.2020.192.3.4`.
875-
875+
876876
.. [Bru2014] Erwan Brugalle and Kristin Shaw. *A bit of tropical geometry*.
877877
Amer. Math. Monthly, 121(7):563-589, 2014.
878878
@@ -1153,6 +1153,10 @@ REFERENCES:
11531153
11541154
.. [Bo2009] Bosch, S., Algebra, Springer 2009
11551155
1156+
.. [Bon2017] Joseph E. Bonin, *Lattices Related to Extensions of
1157+
Presentations of Transversal Matroids*.
1158+
Electronic Journal of Combinatorics (2017), #P1.49.
1159+
11561160
.. [Bor1993] Lev A. Borisov,
11571161
"Towards the mirror symmetry for Calabi-Yau complete
11581162
intersections in Gorenstein Fano toric varieties", 1993.
@@ -5243,7 +5247,7 @@ REFERENCES:
52435247
.. [NT2007] Serguei Norine and Robin Thomas. *Minimally Non-Pfaffian Graphs*.
52445248
Combinatorica, vol. 27, no. 5, pages: 587 -- 600, Springer. 2007.
52455249
:doi:`10.1016/j.jctb.2007.12.005`.
5246-
5250+
52475251
.. [Nur2004] K. Nurmela. *Upper bounds for covering arrays by tabu search*.
52485252
Discrete Applied Math., 138 (2004), 143-152.
52495253
@@ -6193,7 +6197,7 @@ REFERENCES:
61936197
of the chromatic polynomial of a graph*, Adv. Math., ***111***
61946198
no.1 (1995), 166-194. :doi:`10.1006/aima.1995.1020`.
61956199
6196-
.. [Sta1998] \R. P. Stanley, *Graph colorings and related symmetric functions:
6200+
.. [Sta1998] \R. P. Stanley, *Graph colorings and related symmetric functions:
61976201
ideas and applications A description of results, interesting applications,
61986202
& notable open problems*, Discrete Mathematics, 193, no.1-3, (1998),
61996203
267-286. :doi:`10.1016/S0012-365X(98)00146-0`.

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

0 commit comments

Comments
 (0)