Rank - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Matroids

  

Rank

  

return the rank of a matroid, or a rank of a subset of its ground set

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

Rank(M)

Rank(M,S)

Parameters

M

-

Matroid

S

-

set describing a subset of the ground set of M.

Description

• 

The rank of a matroid is the cardinality of a maximal independent subset of its ground set. Equivalently, the rank of a matroid is the size of each of its bases.

• 

The rank of a subset S of the ground set E of a matroid is the cardinality of a maximal independent subset of S.

Examples

> 

with⁡Matroids:

Define a matroid via the column space of a matrix and determine the ranks of several subsets of the columns.

> 

A≔Matrix⁡1,1,0,0,−1,0,1,0,0,−1,−1,0

A≔1100−10100−1−10

(1)
> 

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:1100−10100−1−10

(2)
> 

r≔Rank⁡M

r≔2

(3)
> 

r14≔Rank⁡M,1,4

r14≔1

(4)
> 

r4≔Rank⁡M,4

r4≔0

(5)
> 

r1234≔Rank⁡M,convert⁡GroundSet⁡M,set

r1234≔2

(6)

References

  

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

See Also

Matroids[Matroid]