summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTara Fife <fi.tara@gmail.com>2016-05-26 21:45:00 -0500
committerTara Fife <fi.tara@gmail.com>2016-05-26 21:45:00 -0500
commitea46145fe2a6d8b243e155e54918cb5b9c6a2190 (patch)
tree92cc5b1dbb1b8ac258567be25d65ce047dccfafc
parentAdded an optional parameter cert to allow the user to ask for a certificate i... (diff)
Fixed bug in basis_matroid, and updated the documentation is basis_exchange_matroid
-rw-r--r--src/sage/matroids/basis_exchange_matroid.pyx4
-rw-r--r--src/sage/matroids/basis_matroid.pyx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sage/matroids/basis_exchange_matroid.pyx b/src/sage/matroids/basis_exchange_matroid.pyx
index 8f65c2e..2269a27 100644
--- a/src/sage/matroids/basis_exchange_matroid.pyx
+++ b/src/sage/matroids/basis_exchange_matroid.pyx
@@ -2270,13 +2270,13 @@ cdef class BasisExchangeMatroid(Matroid):
sage: M1._is_isomorphic(M2)
True
sage: M1._is_isomorphic(M2, True)
- (True, True)
+ (True, {0: 0, 1: 1, 2: 2, 3: 3, 4: 5, 5: 4})
sage: M1 = BasisMatroid(matroids.named_matroids.Fano())
sage: M2 = matroids.named_matroids.NonFano()
sage: M1._is_isomorphic(M2)
False
sage: M1._is_isomorphic(M2, True)
- (False, False)
+ (False, None)
"""
if cert:
diff --git a/src/sage/matroids/basis_matroid.pyx b/src/sage/matroids/basis_matroid.pyx
index 89ddc5d..5da0276 100644
--- a/src/sage/matroids/basis_matroid.pyx
+++ b/src/sage/matroids/basis_matroid.pyx
@@ -978,7 +978,7 @@ cdef class BasisMatroid(BasisExchangeMatroid):
False
"""
if not isinstance(other, BasisMatroid):
- return BasisExchangeMatroid._is_isomorphic(self, other)
+ return self.isomorphism(BasisMatroid(other))
if self is other:
return {e:e for e in self.groundset()}
if len(self) != len(other):