Macaulay2 » Documentation
Packages » Matroids :: uniformMatroid
next | previous | forward | backward | up | index | toc

uniformMatroid -- uniform matroid

Synopsis

Description

The uniform matroid of rank k has as bases all size k subsets. The ground set is $\{0, ..., n-1\}$.

i1 : U35 = uniformMatroid(3,5)

o1 = a "matroid" of rank 3 on 5 elements

o1 : Matroid
i2 : peek U35

o2 = Matroid{bases => {set {0, 1, 2}, set {0, 1, 3}, set {0, 2, 3}, set {1, 2, 3}, set {0, 1, 4}, set {0, 2, 4}, set {1, 2, 4}, set {0, 3, 4}, set {1, 3, 4}, set {2, 3, 4}}}
             cache => CacheTable{...1...}
             groundSet => set {0, 1, 2, 3, 4}
             rank => 3

See also

Ways to use uniformMatroid :

For the programmer

The object uniformMatroid is a method function.