summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTara Fife <fi.tara@gmail.com>2016-05-27 14:30:48 -0500
committerTara Fife <fi.tara@gmail.com>2016-05-27 14:30:48 -0500
commit12a4b3d50d34912f44c6f700b95fdc7360612162 (patch)
treee65f8842e3a499aaf43101b8f0cbe56f94c9d941
parentFixed bug in basis_matroid, and updated the documentation is basis_exchange_m... (diff)
Changed cert to certificate
-rw-r--r--src/sage/matroids/basis_exchange_matroid.pyx8
-rw-r--r--src/sage/matroids/basis_matroid.pyx8
-rw-r--r--src/sage/matroids/circuit_closures_matroid.pyx8
-rw-r--r--src/sage/matroids/linear_matroid.pyx8
-rw-r--r--src/sage/matroids/matroid.pyx12
5 files changed, 22 insertions, 22 deletions
diff --git a/src/sage/matroids/basis_exchange_matroid.pyx b/src/sage/matroids/basis_exchange_matroid.pyx
index 2269a27..774ab63 100644
--- a/src/sage/matroids/basis_exchange_matroid.pyx
+++ b/src/sage/matroids/basis_exchange_matroid.pyx
@@ -2242,7 +2242,7 @@ cdef class BasisExchangeMatroid(Matroid):
return self._characteristic_setsystem()._isomorphism(other._characteristic_setsystem(), PS, PO)
- cpdef _is_isomorphic(self, other, cert=False):
+ cpdef _is_isomorphic(self, other, certificate=False):
"""
Test if ``self`` is isomorphic to ``other``.
@@ -2251,12 +2251,12 @@ cdef class BasisExchangeMatroid(Matroid):
INPUT:
- ``other`` -- A matroid,
- - optional parameter ``cert`` -- Boolean.
+ - optional parameter ``certificate`` -- Boolean.
OUTPUT:
Boolean,
- and, if cert = True, a dictionary or None
+ and, if certificate = True, a dictionary or None
.. NOTE::
@@ -2279,7 +2279,7 @@ cdef class BasisExchangeMatroid(Matroid):
(False, None)
"""
- if cert:
+ if certificate:
return self._is_isomorphic(other), self._isomorphism(other)
if not isinstance(other, BasisExchangeMatroid):
return other._is_isomorphic(self)
diff --git a/src/sage/matroids/basis_matroid.pyx b/src/sage/matroids/basis_matroid.pyx
index 5da0276..9175f9d 100644
--- a/src/sage/matroids/basis_matroid.pyx
+++ b/src/sage/matroids/basis_matroid.pyx
@@ -1027,19 +1027,19 @@ cdef class BasisMatroid(BasisExchangeMatroid):
return self.nonbases()._isomorphism(other.nonbases(), PS, PO)
- cpdef _is_isomorphic(self, other, cert=False):
+ cpdef _is_isomorphic(self, other, certificate=False):
"""
Return if this matroid is isomorphic to the given matroid.
INPUT:
- ``other`` -- A matroid,
- - optional parameter ``cert`` -- Boolean.
+ - optional parameter ``certificate`` -- Boolean.
OUTPUT:
Boolean,
- and, if cert = True, a dictionary or None
+ and, if certificate = True, a dictionary or None
.. NOTE::
@@ -1055,7 +1055,7 @@ cdef class BasisMatroid(BasisExchangeMatroid):
sage: M._is_isomorphic(N, True)
(False, None)
"""
- if cert:
+ if certificate:
return self._is_isomorphic(other), self._isomorphism(other)
if not isinstance(other, BasisMatroid):
return BasisExchangeMatroid._is_isomorphic(self, other)
diff --git a/src/sage/matroids/circuit_closures_matroid.pyx b/src/sage/matroids/circuit_closures_matroid.pyx
index c3c2ed7..063cd31 100644
--- a/src/sage/matroids/circuit_closures_matroid.pyx
+++ b/src/sage/matroids/circuit_closures_matroid.pyx
@@ -355,7 +355,7 @@ cdef class CircuitClosuresMatroid(Matroid):
"""
return self._circuit_closures
- cpdef _is_isomorphic(self, other, cert=False):
+ cpdef _is_isomorphic(self, other, certificate=False):
"""
Test if ``self`` is isomorphic to ``other``.
@@ -364,12 +364,12 @@ cdef class CircuitClosuresMatroid(Matroid):
NPUT:
- ``other`` -- A matroid,
- - optional parameter ``cert`` -- Boolean.
+ - optional parameter ``certificate`` -- Boolean.
OUTPUT:
Boolean,
- and, if cert = True, a dictionary or None
+ and, if certificate = True, a dictionary or None
.. NOTE::
@@ -393,7 +393,7 @@ cdef class CircuitClosuresMatroid(Matroid):
"""
- if cert:
+ if certificate:
return self._is_isomorphic(other), self._isomorphism(other)
N = CircuitClosuresMatroid(other)
if sorted(self._circuit_closures.keys()) != sorted(N._circuit_closures.keys()):
diff --git a/src/sage/matroids/linear_matroid.pyx b/src/sage/matroids/linear_matroid.pyx
index f951405..d2c4744 100644
--- a/src/sage/matroids/linear_matroid.pyx
+++ b/src/sage/matroids/linear_matroid.pyx
@@ -3265,7 +3265,7 @@ cdef class BinaryMatroid(LinearMatroid):
# isomorphism
- cpdef _is_isomorphic(self, other, cert=False):
+ cpdef _is_isomorphic(self, other, certificate=False):
"""
Test if ``self`` is isomorphic to ``other``.
@@ -3274,12 +3274,12 @@ cdef class BinaryMatroid(LinearMatroid):
NPUT:
- ``other`` -- A matroid,
- - optional parameter ``cert`` -- Boolean.
+ - optional parameter ``certificate`` -- Boolean.
OUTPUT:
Boolean,
- and, if cert = True, a dictionary or None
+ and, if certificate = True, a dictionary or None
.. NOTE::
@@ -3300,7 +3300,7 @@ cdef class BinaryMatroid(LinearMatroid):
sage: M1._is_isomorphic(matroids.Wheel(3))
True
"""
- if cert:
+ if certificate:
return self._is_isomorphic(other), self._isomorphism(other)
if isinstance(other, BinaryMatroid):
return self.is_field_isomorphic(other)
diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx
index 45c1f95..152d246 100644
--- a/src/sage/matroids/matroid.pyx
+++ b/src/sage/matroids/matroid.pyx
@@ -3070,7 +3070,7 @@ cdef class Matroid(SageObject):
# isomorphism and equality
- cpdef is_isomorphic(self, other, cert=False):
+ cpdef is_isomorphic(self, other, certificate=False):
r"""
Test matroid isomorphism.
@@ -3081,12 +3081,12 @@ cdef class Matroid(SageObject):
INPUT:
- ``other`` -- A matroid,
- - optional parameter ``cert`` -- Boolean.
+ - optional parameter ``certificate`` -- Boolean.
OUTPUT:
Boolean,
- and, if cert = True, a dictionary or None
+ and, if certificate = True, a dictionary or None
EXAMPLES::
@@ -3112,9 +3112,9 @@ cdef class Matroid(SageObject):
"""
if not isinstance(other, Matroid):
raise TypeError("can only test for isomorphism between matroids.")
- return self._is_isomorphic(other, cert)
+ return self._is_isomorphic(other, certificate)
- cpdef _is_isomorphic(self, other, cert=False):
+ cpdef _is_isomorphic(self, other, certificate=False):
"""
Test if ``self`` is isomorphic to ``other``.
@@ -3150,7 +3150,7 @@ cdef class Matroid(SageObject):
False
"""
- if cert:
+ if certificate:
return self._is_isomorphic(other), self._isomorphism(other)
if self is other:
return True