relabel(M, H)
relabel(M, L)
relabel M
This method yields another matroid isomorphic to the input matroid M with labels specified by a hash table, or list of options. The keys of the hash table should be (a subset of) $\{0, ..., n-1\}$ where n is the number of elements in the groundSet of M. Since any unused elements are assumed to remain unchanged, the set of values should coincide with the set of keys.
Alternatively, the images of $\{0, ..., n-1\}$ (in order) can be specified (as a list, whose elements are not options). If neither a list nor hash table is provided, then a random permutation is chosen.
|
|
|
|
|
The object relabel is a method function.