Matroid girth

Posted on August 12, 2025 by Yu Cong

Let M=(E,)M=(E,\mathcal I) be a matroid with non-negative weights w:E0w:E\to \mathbb{R}_{\geq 0}. The girth of MM is min{eCw(e):C is a circuit of M}. \min \left\{ \sum_{e\in C} w(e): \text{$C$ is a circuit of $M$} \right\}.

Cogirth of MM is the girth of the dual matroid of MM.

Computing girth is NP-hard for binary matroids but can be done in polynomial time for graphs. Wikipedia lists some negative complexity results, which mainly concern more general matroid classes than binary matroids. So here are some positive results filling the gap between graphic matroids and binary matroids. (Results can be found in https://matroidunion.org/?p=1106.) Proofs that you don’t see here can easily be found in the references.

1 Regular matroid

Theorem1Seymour decomposition [1]

Every regular matroid may be constructed by combining graphic matroids, cographic matroids, and a certain ten-element regular matroid that is neither graphic nor cographic, using 3 binary operations:
  • 1-sum is direct sum of two matroids
  • 2-sum is patching two matroid on 1 common element
  • 3-sum is patching two matroids on 3 common elements forming a 3-circuit in each matroid.

This decomposition can be found in polynomial time. One can decide if a matroid MM can be decomposed into M1M_1 and M2M_2 using 1/2/3-sum in polynomial time. See https://www.emis.de/monographs/md/index.html.

Theorem 1 leads to a natural algorithm for computing the girth in regular matroids. The decomposition of regular matroids gives us a binary tree, where each node is a regular matroid and each leaf is either (co)graphic or a special 10 element regular matroid. Every non-leaf node in the decomposition tree represents a regular matroid MM which is 1/2/3-sum of its two direct decendents M1M_1 and M2M_2. Let AiBA \oplus_i B be the ii-sum of AA and BB for i[3]i\in [3]. Now there are only 3 cases:
  1. M=M11M2M=M_1\oplus_1 M_2. Direct sum does not create new circuit. girth(M)=min{girth(M1),girth(M2)}\mathop{\mathrm{girth}}(M)=\min \left\{ \mathop{\mathrm{girth}}(M_1),\mathop{\mathrm{girth}}(M_2) \right\}.
  2. M=M12M2M=M_1\oplus_2 M_2. Let ee be the common element of E(M1)E(M_1) and E(M2)E(M_2). In this case there may be new circuits. However, any circuit of MM which is not a circuit of M1M_1 and M2M_2 must be contained in C1C2\{e}C_1\cup C_2\setminus \left\{ e \right\}, where CiC_i is a circuit in MiM_i containing ee. Thus to find the minimum weighted new circuit we can compute the minimum circuit in M1M_1 containing ee (say C1*C_1^*) and replace the weight w(e)w(e) in M2M_2 with w(C1*)w(e)w(C_1^*)-w(e) and then find the minimum weight circuit in M2M_2 containing ee. The girth of MM is the minimum among girth(M1)\mathop{\mathrm{girth}}(M_1), girth(M2)\mathop{\mathrm{girth}}(M_2) and min{w(C):C is new circuit}\min\left\{ w(C): \text{$C$ is new circuit} \right\}.

    We need to prove that all these operations can be done in polynomial time.

    For the 2/3-sum case we need to find in at least one of the summands the minimum circuit that contains a common element ee. However, finding such a minimum circuit is regular matroids is not known to be polynomially solvable. To understand what’s happening here we need to look into Seymour’s proof
    I realized that one doesn’t need to understand Seymour’s 55-page paper to see why the desired operations can be done in polynomial time…
    The proof of Theorem 1 has 3 parts:
    • There is a special 10-element regular matroid R10R_{10} such that any regular matroid can be obtained by 1/2-sums from regular matroids without R10R_{10} minor and copies of R10R_{10}. (Now we can assume that we are working with regular matroids which have no R10R_{10} minor and are not separable via 1/2-sum.)
    • There is another 12-element regular matroid R12R_{12} such that any regular matroid can be obtained by 1/2/3-sums from matroids without R12R_{12} minor. (Now we are working with regular matroids that are not separable via 1/2/3-sum and have no R10R_{10} or R12R_{12} minors.)
    • Every 3-connected regular matroid which is neither graphic nor cographic has an R10R_{10} or R12R_{12} minor. Let MM be a matroid. MM is 3-connected iff MM is not expressible as a 1- or 2-sum. (cf.[1] 2.10(b)) It follows that the remaining regular matroids are graphic or cographic.
    the decomposition tree.

    Instead of considering our binary decomposition tree, we now construct a new graph GG where each vertex represents a graphic matroid, cographic matroid or R10R_{10} and there is an edge between two vertices if the corresponding matroids are patched using 1/2/3-sum. We claim that there is no cycle in the graph. The graph is connected. Assume that there is a cycle and let M1,M2M_1,M_2 be two matroids whose corresponding vertices are in the cycle. Consider the LCA MM of M1M_1 and M2M_2 in the binary tree. MM represents a connected subgraph HGH\subset G that contains M1M_1 and M2M_2 but not the entire cycle since otherwise there will be 2 1/2/3-sum operation between two regular matroids. However, M1M_1 and M2M_2 are still connected in GE[H]G-E[H] since M1M_1 and M2M_2 are in the same cycle, which contradicts the uniqueness of the LCA.

    Thus GG is a tree and we can always assume that one of the matroids in the summands is graphic matroid, cographic matroid or R10R_{10}. Finding the minimum circuit containing a fixed element can be done in those matroids in polynomial time and there exists a algorithm that computes the tree in cubic time [2].
  3. M=M13M2M=M_1\oplus_3 M_2. Similar to the 2-sum case. There are only 3 common elements. We can enumerate all circuits of M1M_1 which contain one of the common elements.

However, deciding whether a regular matroid has a circuit of length at most k containing two fixed elements is FPT.

2 Proper minor-closed class of binary matroids

The most important problem in this field is the following.
Conjecture2Geelen, Gerards, and Whittle [3]

For any proper minor-closed class \mathcal M of binary matroids, there is a polynomial-time algorithm for computing the girth of matroids in \mathcal M.

Similar to Seymour’s decomposition for regular matroids, every proper minor-closed class of binary matroid admits a “decomposition” into graphic matroids and some binary matroids.
Theorem3[3]

For each proper minor-closed class \mathcal M of binary matroids, there exist integers k,t0k,t\geq 0 such that for each vertically kk-connected matroid MM\in \mathcal M, there exist matrices A,P𝔽2r×nA,P\in \mathbb{F}_2^{r\times n} such that AA is the incidence matrix of a graph, r(P)tr(P)\leq t and either M=M(A+P)M=M(A+P) or M*=M(A+P)M^*=M(A+P).

The matroids M(A+P)M(A+P) in Theorem 3 are called perturbed graphic matroids. Note that we can consider kk and tt in Theorem 3 as constants since for each minor-closed class they are fixed.

Using Theorem 3, Conjecture 2 is true if one can prove the followings:
  1. there is a polynomial-time alg that finds the girth of M(A+P)M(A+P);
  2. One can reduce the problem of computing the girth of members of \mathcal M to that of computing the girth of vertically kk-connected members of \mathcal M.

3 Perturbed graphic matroids

Jim Geelen and Rohan Kapadia [4] showed that the (co)girth can be computed in randomized polynomial time for a subclass of binary matroids called perturbed graphic matroids. They made a reduction from the (co)girth problem of perturbed graphic matroids to graph cuts and matchings using (s,t)(s,t)-signed-grafts. IMO the reduction is quite tricky. Let ss and tt be two non-negative integers. An (s,t)(s,t)-signed-graft is a tuple (G,S,T,B,C,D)(G,S,T,B,C,D) such that:
  • GG is a graph,
  • SS is an ss-element set disjoint from V(G)V(G),
  • TT is a tt-element set disjoint from E(G)E(G),
  • B,C,DB,C,D are 0-1 matrices.

The incidence matrix of an (s,t)(s,t)-signed-graft (G,S,T,B,C,D)(G,S,T,B,C,D) is A=E(G)TV(G)S(A(G)BCD) A = \begin{array}{ccc} & \begin{array}{cc} E(G) & T \end{array} \\ \begin{array}{c} V(G) \\ S \end{array} & \left( \begin{array}{cc} A(G) & B \\ C & D \end{array} \right) \end{array} where A(G)A(G) is the incidence matrix of GG. Denote the matroid M(A)M(A) by M(G,S,T,B,C,D)M(G,S,T,B,C,D).
Lemma4[4,Lemma 4.1]

Let GG be a graph and let P𝔽2V(G)×E(G)P\in \mathbb{F}_2^{V(G)\times E(G)} be a rank-tt matrix. Then there is a (t,t)(t,t)-signed-graft (G,S,T,B,C,D)(G,S,T,B,C,D) such that M(A(G)+P)=M(G,S,T,B,C,D)/T.M(A(G)+P)=M(G,S,T,B,C,D)/T.

The proof is taking B,CB,C as a rank decomposition of PP and applying some row operations.

Recall that Theorem 3 says that each vertically kk-connected matroid MM in a proper minor-closed class of binary matroids is either M(A+P)M(A+P) or M(A+P)*M(A+P)^*. One has to consider the girth and cogirth problem separately.

3.1 Reductions

Lemma5the cogirth part. [4,Lemma 4.2]

Let (G,S,T,B,C,D)(G,S,T,B,C,D) be an (s,t)(s,t)-signed-graft and SS' be a one-element set disjoint from V(G)V(G). The cogirth of M(G,S,T,B,C,D)/TM(G,S,T,B,C,D)/T is the mimimum of the cogirths of matroids M(G,S,T,B,yC,yD)/TM(G,S',T,B,yC,yD)/T taken over all y𝔽2S×Sy\in \mathbb{F}_2^{S'\times S}.
Proof

To see this lemma, I suggest considering the flats instead of cocycles.
  • Each flat in M=M(G,S,T,B,yC,yD)M=M(G,S',T,B,yC,yD) is also a flat M=M(G,S,T,B,C,D)M'=M(G,S,T,B,C,D). Let FF' be a flat of MM' and FF be the corresponding set in MM. If there is an element ee of M\FM\setminus F such that ee is linearly representable by vectors in FF. Then ee is also representable by vectors in FF' by linearality of the multiplication.
  • For each hyperplane HH in MM, there is a y𝔽2S×Sy\in \mathbb{F}_2^{S'\times S} such that FF' is a flat of MM'. Note that this only works for cocircuits (hyperplanes) but not cocycles (flats). We can assume that the A(G),BA(G),B part is empty. Let the first kk columns be the hyperplane HH. Then the matrix is M=(HU). M=\begin{pmatrix} H & U \end{pmatrix}. We want to show that there is a y𝔽2sy\in \mathbb{F}_2^s such that HTy=𝟎H^T y=\mathbf{0} and UTy=𝟏.U^T y=\mathbf{1}. Let BB be a base in this linear matroid. Apply row operations to make BB a standard basis (at most one “1” in each column). The intersection of BB and HH has exactly r1r-1 vectors. Now we construct the vector y.y. If there is any vector in BHB\cap H that has a “1” in the kk-th coordinate, let y[k]=0y[k]=0; Otherwise, we set y[k]=1.y[k]=1. Note that HTy=𝟎H^T y=\mathbf{0} and UTy=𝟏.U^T y=\mathbf{1}. Thus HH remains a hyperplane in M.M'.
Lemma6the girth part. [4,Lemma 4.3]

Let (G,S,T,B,C,D)(G,S,T,B,C,D) be an (s,t)(s,t)-signed-graft and TT' be a one-element set disjoint from E(G).E(G). The girth of M(G,S,T,B,C,D)/TM(G,S,T,B,C,D)/T is the mimimum of the girths of matroids M(G,S,T,Bx,C,Dx)/TM(G,S',T,Bx,C,Dx)/T taken over all x𝔽2T×T.x\in \mathbb{F}_2^{T\times T'}.

It follows from Lemma 4 we need to consider the (co)girth of M/TM/T where MM is the matroid of an (s,t)(s,t)-signed-graft.

3.2 cogirth → even cuts

By Lemma 5, to compute the cogirth of an (s,t)(s,t)-signed-graft we only need to consider binary matroid of the following kind:

A=E(G)TV(G){v}(A(G)Bσα) A= \begin{array}{ccc} & \begin{array}{cc} E(G) & T \end{array} \\ \begin{array}{r} V(G) \\ \left\{ v \right\} \end{array} & \begin{pmatrix} A(G) & B \\ \sigma & \alpha \end{pmatrix} \end{array}

We want to find the cogirth of M(A)/TM(A)/T. One useful proposition is the following. (See this post for a proof sketch.)
Proposition7[5,Proposition 9.2.2]

Let AA be a binary representation of a rank-rr binary matroid MM. Then the cocircuit space of MM equals the row space of AA. Moreover, this space has dimension rr and is the orthogonal subspace of the circuit space of MM.

What we are finding is the minimum support of vectors in the row space of AA such that the support has empty intersection with TT
Why? We want to find the cocircuit with minimum size. This is exactly the vector with minimum number of 1s in the cocircuit space if our matroid is binary. In binary matroid the symmetric difference of (co)circuits contains a (co)circuit and is dependent.
. Note that the support of rows in the graph incidence matrix A(G)A(G) has interpretation. They are exactly δ(X)\delta(X) where XX is the set of vertices for the summand rows. Thus we divide the problem into 2 cases. Let B[u]B[u] be a tt-dimentional binary label on each vertex.
  1. The row indexed by {v}\left\{ v \right\} is not in the solution. Find the smallest non-empty cut δ(X)\delta(X) in GG such that uXB[u]=𝟎\sum_{u\in X}B[u]=\mathbf 0.
  2. The row indexed by {v}\left\{ v \right\} is in the solution. Now σ\sigma represents a subset of edges in GG. We want to find a cut δ(X)\delta(X) such that σΔδ(X)\sigma \Delta \delta(X) is minimized and non-empty and uXB[u]=α\sum_{u\in X}B[u]=\alpha.

These are called the tt-dimensional even-cut problem. Geelen and Kapadia discovered a random contraction algorithm which solves both of the problems in randomized polynomial time [4].

If the graph is not connected, it is possible that δ(X)\delta(X) is empty even if XX is non-empty. Fortunately, Geelen and Kapadia have done the reduction to connected graphs.

Note that the size of cut |δ(X)||\delta(X)| is a submodular function on V(G)V(G) but |δ(X)Δσ||\delta(X)\Delta \sigma| is not necessarily submodular. The first case is minimizing a symmetric submodular function under some congruency constraints.
Problem8Generalised Congruency-Constrained Submodular Minimization (GCCSM)

Let f:2Nf:2^N \to \mathbb{Z} submodular, pp prime, k0k\in \mathbb{Z}_{\geq 0}, r1,,rkpr_1,\dots,r_k\in \mathbb{Z}_p, and S1,,SkNS_1,\dots,S_k\in N. minf(S)s.t.|SSi|rii[k]SN \begin{aligned} \min& & f(S)& & &\\ s.t.& & |S\cap S_i|&\equiv r_i & &\forall i\in [k]\\ & & S&\subset N \end{aligned}

Nägele, Sudakov and Zenklusen showed that Problem 8 can be done in polynomial time if the field is small and the number of congruency constraints is constant [6].
Theorem9[6]

Problem 8 can be solved in time |N|2kp+O(1)|N|^{2kp+O(1)}.

I think currently (Sep 2025) finding a deterministic polynomial time algorithm for tt-dim even cut is still open.

3.3 girth → parity cycle + parity join

Similar to the cogirth part, by Lemma 6 we consider the following matrix

A=E(G){f}V(G)S(A(G)bCd) A= \begin{array}{ccc} & \begin{array}{cc} E(G) & \left\{ f \right\} \end{array} \\ \begin{array}{r} V(G) \\ S \end{array} & \begin{pmatrix} A(G) & b \\ C & d \end{pmatrix} \end{array} and we want to compute the girth of M(A)/{f}M(A)/\left\{ f \right\}. Each edge in GG has a label c(e)𝔽2sc(e)\in\mathbb{F}_2^{s} (the submatrix CC). Contracting an element in a matroid may change circuits. There are two cases:
  1. The minimum circuit does not contain {f}\left\{ f \right\}. Then the girth of M(A)/{f}M(A)/\left\{ f \right\} is the same as M(A)\{f}M(A)\setminus \left\{ f \right\}. In this case we need to find the minimum cycle in GG such that the sum of its edge labels is exactly 𝟎\mathbf{0}. This is the parity cycle problem.
  2. The minimum circuit contains {f}\left\{ f \right\}. Let the girth of M(A)/{f}M(A)/\left\{ f \right\} be λ\lambda. Then M(A)M(A) has a minimum circuit that contains ff and has size λ+1\lambda+1. Let TT be the set of vertices whose characteristic vector is bb. To find the minimum circuit of M(A)M(A), we want to find the minimum edge set FEF\subset E such that the sum of labels is dd and TT is exactly the set of vertices with odd degree in G[F]G[F]. This is called the parity TT join problem.

Recently, Schlotter and Sebő find FPT time algorithm for the odd TT-join problem[7]. Sebő has some open problems on this topic which can be found here(page 11).

4 More on perturbed graphic matroids

Fomin and others studied FPT algorithms of Space Cover problem (which is a generalization of matroid girth problem) on perturbed graphic matroids [8].
Problem10Space Cover

Let G=(V,E)G=(V,E) be a multigraph on nn vertices and mm edges and let PP be a n×mn\times m matrix with constant rank. We write I(G)I(G) for the incidence matrix of GG. Given a set of terminal edges TET\subset E and an integer kk, decide if there is a edge set FE\TF\subset E\setminus T with |F|<k|F|<k such that Tspan(F)T\subset \operatorname{span}(F) in the binary matroid of M(I(G)+P)M(I(G)+P).

They show that Space Cover generalizes steiner tree and multiway cut even when PP is absent and they focus on FPT algorithms with parameter kk. This problem is solvable in time kO(k)poly(n+m)k^{O(k)}\operatorname{poly}(n+m).

References

[1]
P.D. Seymour, Decomposition of regular matroids, Journal of Combinatorial Theory, Series B. 28 (1980) 305–359 10.1016/0095-8956(80)90075-1.
[2]
K. Truemper, A decomposition theory for matroids. V. Testing of matrix total unimodularity, Journal of Combinatorial Theory, Series B. 49 (1990) 241–281 10.1016/0095-8956(90)90030-4.
[3]
J. Geelen, B. Gerards, G. Whittle, The highly connected matroids in minor-closed classes, Annals of Combinatorics. 19 (2015) 107–123 10.1007/s00026-015-0251-3.
[4]
J. Geelen, R. Kapadia, Computing Girth and Cogirth in Perturbed Graphic Matroids, Combinatorica. 38 (2018) 167–191 10.1007/s00493-016-3445-3.
[5]
J.G. Oxley, Matroid theory, 2nd ed, Oxford University Press, Oxford ; New York, 2011.
[6]
M. Nägele, B. Sudakov, R. Zenklusen, Submodular minimization under congruency constraints, Combinatorica. 39 (2019) 1351–1386 10.1007/s00493-019-3900-1.
[7]
I. Schlotter, A. Sebő, Odd Paths, Cycles, and TT-Joins: Connections and Algorithms, SIAM Journal on Discrete Mathematics. 39 (2025) 484–504 10.1137/23M158156X.
[8]
F.V. Fomin, P.A. Golovach, D. Lokshtanov, S. Saurabh, M. Zehavi, Covering Vectors by Spaces in Perturbed Graphic Matroids and Their Duals, in: 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 2019: pp. 59:1–59:13 10.4230/LIPIcs.ICALP.2019.59.