Returns a list of bases of the matroid. The basis elements are represented as sets of nonnegative integers, which are the indices of the elements in the ground set that make up a basis element. To get the subset of the ground set corresponding to a set of indices, use subscripts.
|
|
|
In this package, bases are the only structure that is always computed upon creation of a matroid. Additional invariants (such as the ideal or circuits) are not precomputed, but are cached after being computed once. This allows for maximum speed in methods that need to call the constructor function many, many times: e.g. tuttePolynomial and hasMinor.
The object bases is a method function.