Bases - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Matroids

  

Bases

  

return the bases of a matroid

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

Bases(M)

Parameters

M

-

Matroid

Description

• 

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.

Examples

withMatroids:

withGraphTheory:

Find the sets of indices whose corresponding columns form a basis for the column space of a matrix.

AMatrix1,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

A111000000111100100010010001002

(1)

MMatroidA

Mthⅇ lⅈnⅇar matroⅈⅆ whosⅇ grounⅆ sⅇt ⅈs thⅇ sⅇt of column vⅇctors of thⅇ matrⅈx:111000000111100100010010001002

(2)

BasesM

1,2,3,4,6,1,2,3,5,6,1,3,4,5,6,2,3,4,5,6

(3)

Find the sets of edges which form spanning trees of a graph.

GGrapha,x,a,y,b,x,b,y,c,x,c,y

GGraph 1: an undirected graph with 5 vertices and 6 edge(s)

(4)

MMatroidG

Mthⅇ graphⅈc matroⅈⅆ on thⅇ graph:PLOT...

(5)

BasesM

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

(6)

References

  

James G. Oxley. Matroid Theory (Oxford Graduate Texts in Mathematics). New York: Oxford University Press. 2006.

See Also

Matroids[Matroid]

Matroids[IndependentSets]