FM = flagMatroid(ML)
FM = flagMatroid(A,L)
Given a list $ML$ of matroids on a common ground set, this method stores the data as a FlagMatroid.



For $A$ an $r\times n$ matrix over a field and $L = \{r_1, \ldots, r_k}$ a list of integers, let $M_i$ be the Matroid defined by the columns of the matrix obtained by the first $r_i$ rows of $A$. These matroids form a flag matroid $\mathbf M = \{M_1, \ldots, M_k\}$. This method creates this FlagMatroid.


When a list of matroids is given as input, this method does not check if the flag matroid is welldefined.
The object flagMatroid is a method function.