summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarij Grinberg <darijgrinberg@gmail.com>2016-05-11 05:18:28 +0200
committerDarij Grinberg <darijgrinberg@gmail.com>2016-05-11 05:18:28 +0200
commit1f13c962f4147de7e488a339f46aff7d895b9e7f (patch)
tree04b80a158001043141051e43574de15bc0c4a09e
parentexample from Hopf notes (diff)
another doctest (one that is sensitive to max/min distinction)
-rw-r--r--src/sage/matroids/matroid.pyx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx
index a6aa0e9..bfcc82c 100644
--- a/src/sage/matroids/matroid.pyx
+++ b/src/sage/matroids/matroid.pyx
@@ -6472,6 +6472,8 @@ cdef class Matroid(SageObject):
True
sage: M.is_max_weight_independent_generic(weights={0: 1, 1: 3, 2: 2, 3: 2})
False
+ sage: M.is_max_weight_independent_generic(weights={0: 2, 1: 3, 2: 1, 3: 1})
+ True
"""
res = []
r = 0
@@ -6614,6 +6616,8 @@ cdef class Matroid(SageObject):
True
sage: M.is_max_weight_coindependent_generic(weights={0: 1, 1: 3, 2: 2, 3: 2})
False
+ sage: M.is_max_weight_coindependent_generic(weights={0: 2, 1: 3, 2: 1, 3: 1})
+ True
"""
res = []
r = 0