#16151: Making BasisExchangeMatroid fool-proof with user input sanity checks
-------------------------------------+-------------------------------------
Reporter: Jayant | Owner: Jayant Apte
Type: defect | Status: new
Priority: minor | Milestone: sage-6.2
Component: matroid theory | Resolution:
Keywords: | Merged in:
Authors: Jayant Apte | Reviewers:
Report Upstream: Reported | Work issues:
upstream. Developers acknowledge | Commit:
bug. | 5bdc0a4548f1149bc086d427f08a2387d9e3ee73
Branch: | Stopgaps:
u/Rudi/ticket/16151 |
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by Rudi):
* commit: => 5bdc0a4548f1149bc086d427f08a2387d9e3ee73
Comment:
This should do it.
I corrected independent_r_sets and also dependent_r_sets (and then I
corrected myself, since the latter needed a slightly different treatment).
As far as I can see, flats(r) is already fool-proof, and there are no
other user-facing methods that take parameters.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=736bca0b9fe51c42d1dc830f86cf281278d8eddd
736bca0]||{{{BasisExchangeMatroid.independent_r_sets() and
.dependent_r_sets() now check if input r exceeds the full rank.}}}||
||[http://git.sagemath.org/sage.git/commit/?id=5bdc0a4548f1149bc086d427f08a2387d9e3ee73
5bdc0a4]||{{{Corrected BasisExchangeMatroid.dependent_r_sets(r) to
enumerate all r-sets if r > full rank.}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/16151#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.