![]() |
CMR
1.3.0
|
A matroid is called regular if can be represented over every field, which is equivalent to representability over the binary field \( \mathbb{F} = \mathbb{F}_2 \) or the ternary field \( \mathbb{F} = \mathbb{F}_3 \). In particular, there exist binary regular and a totally unimodular representation matrices, both of which linearly represent that matroid over the respective field. Such a regular matroid can be decomposed, which is essential for testing regularity. The internal representation is a Seymour decomposition tree whose nodes are pointers to CMR_SEYMOUR_NODE.
Each such decomposition node has a matrix over the field \( \mathbb{F} \) to which it corresponds, which is indicated by CMRseymourIsTernary. While each node has an explicit matrix (see CMRseymourGetMatrix), its transpose need not be stored explicitly (see CMRseymourHasTranspose and CMRseymourGetTranspose). If the matrix is totally unimodular then its support matrix of such a ternary matrix is then also binary regular.
A decomposition node may have children, which are (references to) other decomposition nodes. Their number can be queried via CMRseymourNumChildren and each child via CMRseymourChild.
Moreover, it has (exactly) one of the following types:
\[ M = \begin{pmatrix} A_1 & \mathbb{O} & \dotsb & \mathbb{O} \\ \mathbb{O} & A_2 & & \vdots \\ \vdots & & \ddots & \mathbb{O} \\ \mathbb{O} & \dotsb & \mathbb{O} & A_k \end{pmatrix}. \]
Such a node has at least two children that belong to the matrices \( M_1 := A_1 \), \( M_2 := A_2 \), up to \( M_k := A_k \). Note that any such decomposition preserves total unimodularity and binary regularity. A 1-sum can be created using the function CMRonesumCompose.\[ M = \begin{pmatrix} A & \mathbb{O} \\ d c^{\textsf{T}} & D \end{pmatrix}. \]
Such a node has exactly two children corresponding to the matrices\[ M_1 = \begin{pmatrix} A \\ c^{\textsf{T}} \end{pmatrix} \qquad \text{and} \qquad M_2 = \begin{pmatrix} d & D \end{pmatrix}, \]
respectively. Note that any such decomposition preserves total unimodularity and binary regularity. A 2-sum can be composed using the function CMRtwosumCompose and decomposed using CMRtwosumDecomposeFirst and CMRtwosumDecomposeSecond.\[ M = \begin{pmatrix} A & B \\ C & D \end{pmatrix}, \]
where \( \mathop{rank}(B) = \mathop{rank}(C) = 1 \) holds. We define\[ M_1 := \begin{pmatrix} A & a & a \\ c^{\textsf{T}} & 0 & \varepsilon \end{pmatrix} \qquad \text{and} \qquad M_2 := \begin{pmatrix} \varepsilon & 0 & b^{\textsf{T}} \\ d & d & D \end{pmatrix}, \]
where \( \varepsilon \in \{-1, +1\} \) and where \( a b^{\textsf{T}} = B \) and \( d c^{\textsf{T}} = C \) hold. Then \( M \) is the \( \Delta \)-sum of \( M_1 \) and \( M_2 \). Note that any such composition preserves total unimodularity and binary regularity, while decomposition preserves both properties for the right choice of \( \varepsilon \).\[ M = \begin{pmatrix} A & B \\ C & D \end{pmatrix}, \]
where \( \mathop{rank}(B) = 0 \) and \( \mathop{rank}(C) = 2 \) hold. We define\[ M_1 := \begin{pmatrix} A & \mathbb{O} \\ C_{i,\star} & \alpha \\ C_{j,\star} & \beta \end{pmatrix}, \qquad M_2 := \begin{pmatrix} \gamma & \delta & \mathbb{O}^{\textsf{T}} \\ C_{\star,k} & C_{\star,\ell} & D \end{pmatrix} \qquad \text{and} \qquad N := \begin{pmatrix} \gamma & \delta & 0 \\ C_{i,k} & C_{i,\ell} & \alpha \\ C_{j,k} & C_{j,\ell} & \beta \end{pmatrix}. \]
where \( \mathop{rank}(C_{\{i,j\},\{k,\ell\}}) = 2 \) and where \( \alpha, \beta, \gamma, \delta \in \{-1,+1\} \) are chosen such that \( N \) is totally unimodular. Then \( M \) is the \( 3 \)-sum of \( M_1 \) and \( M_2 \). Note that any such composition preserves total unimodularity and binary regularity, while decomposition preserves both properties for the right choice of \( \alpha, \beta, \gamma, \delta \).\[ M = \begin{pmatrix} A & B \\ C & D \end{pmatrix}, \]
where \( \mathop{rank}(B) = \mathop{rank}(C) = 1 \) holds. We define\[ M_1 := \begin{pmatrix} A & a \\ c^{\textsf{T}} & 0 \\ c^{\textsf{T}} & \varepsilon \end{pmatrix} \qquad \text{and} \qquad M_2 := \begin{pmatrix} \varepsilon & b^{\textsf{T}} \\ 0 & b^{\textsf{T}} \\ d & D \end{pmatrix}, \]
where \( \varepsilon \in \{-1, +1\} \) and where \( a b^{\textsf{T}} = B \) and \( d c^{\textsf{T}} = C \) hold. Then \( M \) is the \( \Delta \)-sum of \( M_1 \) and \( M_2 \). Note that any such composition preserves total unimodularity and binary regularity, while decomposition preserves both properties for the right choice of \( \varepsilon \).The following restrictions apply:
Additional data may be associated with each decomposition node. Information about specific submatrices/minors can be obtained via CMRseymourNumMinors and CMRseymourMinor, which returns the associated CMR_MINOR objects.