Matroids
Rank
return the rank of a matroid, or a rank of a subset of its ground set
Calling Sequence
Parameters
Description
Examples
References
Rank(M)
Rank(M,S)
M
-
Matroid
S
set describing a subset of the ground set of M.
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.
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
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
r≔Rank⁡M
r≔2
r14≔Rank⁡M,1,4
r14≔1
r4≔Rank⁡M,4
r4≔0
r1234≔Rank⁡M,convert⁡GroundSet⁡M,set
r1234≔2
James G. Oxley. Matroid Theory (Oxford Graduate Texts in Mathematics). New York: Oxford University Press. 2006.
See Also
Matroids[Matroid]
Download Help Document