#15836: BasisMatroid.circuits() returns a malformed SetSystem when called on the
empty matroid
------------------------------+----------------------------
Reporter: Rudi | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.2
Component: matroid theory | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------------+----------------------------
The following produces an error:
{{{
from sage.matroids.advanced import *
M=Basismatroid(groundset=[], rank =0)
for C in M.circuits(): print C
}}}
Also, len(M.circuits()) is reported to be 1, whereas len(M.cocircuits())
is 0 and the latter is not malformed.
It is a bit of a theological issue, but I think we agree that the matroid
on zero elements has circuits nor cocircuits:
in general a matroid of rank 0 on k elements has k circuits and no
cocircuits.
So I want to make sure that M.circuits() returns that empty SetSystem
(easy enough) but I also want to find out how it is possible that the
SetSystem becomes malformed in this case.
--
Ticket URL: <http://trac.sagemath.org/ticket/15836>
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.