#15836: BasisMatroid.circuits() returns a malformed SetSystem when called on the
empty matroid
-------------------------------------+-------------------------------------
       Reporter:  Rudi               |        Owner:  Rudi
           Type:  defect             |       Status:  new
       Priority:  minor              |    Milestone:  sage-6.2
      Component:  matroid theory     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/Rudi/ticket/15836                |  329566023aaef2d2f534bfe7cf1753052055b335
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by Rudi):

 * owner:   => Rudi
 * commit:   => 329566023aaef2d2f534bfe7cf1753052055b335


Comment:

 The problem here is essentially due to the fact that one cannot create a
 bitset of length 0. To adjust for this, I worked with bitsets of length 1
 in the exceptional case of a BasisExchangeMatroid (or SetSystem) with an
 empty ground set. But then bitset_complement() does not precisely do what
 it should do, and may create a set containing an element index pointing
 outside the ground set.

 So what I did now is catch the possibility of an empty ground set in
 several enumerative functions. I will go on to have a look at the more
 low-level functions. I hope that they simply work, because I would hate to
 incur a speed penalty to repair a problem that arises only for the empty
 matroid.
 ----
 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=329566023aaef2d2f534bfe7cf1753052055b335
 3295660]||{{{Adjusted several enumerative functions BasisExchangeMatroid
 to separately handle the fringe}}}||

--
Ticket URL: <http://trac.sagemath.org/ticket/15836#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/groups/opt_out.

Reply via email to