Matroids
Bases
return the bases of a matroid
Calling Sequence
Parameters
Description
Examples
References
Bases(M)
M
-
Matroid
The bases of a matroid are its maximal independent sets. Given a matroid, the function Bases returns the bases of that matroid as a list of sets.
If the bases of this matroid haven't been computed before, they are computed by this command and stored for any future computations that use the bases.
with⁡Matroids:
with⁡GraphTheory:
Find the sets of indices whose corresponding columns form a basis for the column space of a matrix.
A≔Matrix⁡1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,2
A≔111000000111100100010010001002
M≔Matroid⁡A
M≔thⅇ lⅈnⅇar matroⅈⅆ whosⅇ grounⅆ sⅇt ⅈs thⅇ sⅇt of column vⅇctors of thⅇ matrⅈx:111000000111100100010010001002
Bases⁡M
1,2,3,4,6,1,2,3,5,6,1,3,4,5,6,2,3,4,5,6
Find the sets of edges which form spanning trees of a graph.
G≔Graph⁡a,x,a,y,b,x,b,y,c,x,c,y
G≔Graph 1: an undirected graph with 5 vertices and 6 edge(s)
M≔Matroid⁡G
M≔thⅇ graphⅈc matroⅈⅆ on thⅇ graph:PLOT⁡...
a_x,a_y,b_x,c_x,a_x,a_y,b_y,c_x,a_x,b_x,b_y,c_x,a_y,b_x,b_y,c_x,a_x,a_y,b_x,c_y,a_x,a_y,b_y,c_y,a_x,b_x,b_y,c_y,a_y,b_x,b_y,c_y,a_x,b_x,c_x,c_y,a_y,b_x,c_x,c_y,a_x,b_y,c_x,c_y,a_y,b_y,c_x,c_y
James G. Oxley. Matroid Theory (Oxford Graduate Texts in Mathematics). New York: Oxford University Press. 2006.
See Also
Matroids[Matroid]
Matroids[IndependentSets]
Download Help Document