1. Introduction
Detecting the existence of cycles in graphs is a fundamental problem in graph theory (cf. [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15]). Graph theoretic algorithms exist to enumerate both odd and even cycles. In [
16], the first author, together with Francisco and Van Tuyl, gave an algebraic algorithm to detect and exhibit all induced odd cycles in an undirected graph. The work in [
16] is an example of the rich interaction between commutative algebra and graph theory. In fact, using algebraic methods to study combinatorial structures and using combinatorial data to understand algebraic properties and invariants has evolved to be an active research topic in combinatorial commutative algebra in recent years (cf. [
17,
18] and references therein).
In the present paper, we continue this line of work and describe an algebraic algorithm to enumerate even circuits in an undirected graph; a
circuit is a closed walk in which the edges are all distinct and a
cycle is a closed walk in which the vertices are all distinct. We also discuss an application of our work to the problem of finding directed cycles in a directed graph (digraph). Let
$G=(V,E)$ be a finite simple undirected graph on the vertex set
$V=\{{x}_{1},\cdots ,{x}_{n}\}$. Let
$\mathbb{k}$ be a field and identify the vertices in
V with the variables in
$R=\mathbb{k}[{x}_{1},\cdots ,{x}_{n}]$. The
edge ideal of
G is defined to be
The construction of edge ideals of graphs was first introduced by Villarreal in [
19] (see also [
20,
21] for edge ideals of simplicial complexes and hypergraphs) and has been an essential tool in various studies in this area of research. Our main result states that even circuits in
G can be detected by considering the
reduced Jacobian dual of the edge ideal
$I\left(G\right)$, a notion which we define in
Section 2.
An even circuit is called
indecomposable if it cannot be realized as the edgedisjoint union of two smaller even circuits. Our first theorem reads as follows, leaving unexplained terminology until
Section 2.
Theorem 1. Let G be a graph, $I=I\left(G\right)$, and ϕ the presentation matrix from the Taylor resolution of I. Then, the indecomposable even circuits of G correspond exactly to the binomial minors of the reduced Jacobian dual $\overline{B\left(\varphi \right)}$, which satisfy the following conditions:
 1.
the monomials in these binomials are squarefree and relatively prime; and
 2.
the columns of the corresponding submatrices are pairwise centerdistinct.
We focus on even circuits because they form a larger class than that of even cycles. With a slight modification of Condition (2), we can also obtain an algebraic characterization for cycles of even lengths in G (see Remark 5). The proof of Theorem 1 is based on an ad hoc analysis of the possible forms of minors of the reduced Jacobian dual $\overline{B\left(\varphi \right)}$.
Theorem 1 allows us to derive an algebraic algorithm to enumerate all indecomposable even circuits in a given graph that runs in polynomial time on the size of the edge set of the graph (see Algorithm 1). Our goal is not to compare the running time of our algorithm to that of existed ones, rather we aim to exhibit yet another interesting connection between commutative algebra and graph theory. Theorem 1 also has an algebraic consequence to finding defining equations for the Rees algebras of edge ideals of graphs (see Theorem 3).
Theorem 1 furthermore has an interesting application toward the study of directed cycles in digraphs. For a digraph
D, we construct a bipartite graph
$G=G\left(D\right)$ (see Definition 7). Note that this bipartite graph has a natural perfect matching, which we denote by
${M}_{D}$. There is an established equivalence between the directed cycles in
D and the even cycles in
G with a certain property that traces its roots back to work done by Dulmage and Mendelsohn in the 1950s (see, for example, [
22,
23]), which we restate for convenience. Specifically, again leaving unexplained terminology until later, we have:
Theorem 2. The directed cycles in a digraph D correspond exactly to the even cycles in $G=G\left(D\right)$ in which a collection of alternating edges forms a subset of the perfect matching ${M}_{D}$.
Theorem 2, combined with Algorithm 1, gives an algebraic algorithm to enumerate all directed cycles in digraphs (see Corollary 4). As a consequence of Theorems 1 and 2, we are also able to translate the famous Caccetta–Häggkvist conjecture for directed cycles in digraphs to a statement about binomial minors of the Jacobian dual matrix (see Conjecture 5).
2. Preliminaries
In this section, we collect important notations and definitions used in the paper. For unexplained terminology in commutative algebra, we refer the reader to [
24,
25], and, in graph theory, we refer the reader to [
26].
Algebra. Throughout the paper, $\mathbb{k}$ denotes an infinite field. Let $R=\mathbb{k}[{x}_{1},\cdots ,{x}_{n}]$ be a polynomial ring over k and let $\mathfrak{m}=({x}_{1},\cdots ,{x}_{n})$. Let $I\subseteq R$ be an ideal and use $\mu \left(I\right)$ to denote the minimal number of generators of I. Let $\varphi $ be a presentation matrix of I.
Definition 1. The Rees algebra
of I is defined to be the graded ring Suppose that $I=({f}_{1},\cdots ,{f}_{r})$. Then, there exists a natural presentation of the Rees algebra of I, namely,given by ${T}_{i}\mapsto {f}_{i}t$ for $i=1,\cdots ,r$, where ${T}_{1},\cdots ,{T}_{r}$ are indeterminates. Set $J=\mathrm{ker}\theta $. Then, $R\left[It\right]\cong R[{T}_{1},\dots ,{T}_{r}]/J$, and J is referred to as the ideal of equations
or defining ideal
of $R\left[It\right]$. Since $\varphi \left({T}_{i}\right)={f}_{i}t$, we say that ${T}_{i}$ corresponds to the generator ${f}_{i}$ of I. By the definition of a presentation matrix
$\varphi $, the linear (in the variables
${T}_{1},\dots ,{T}_{r}$) equations of
J are generated by entries of the matrix
$[{T}_{1}\phantom{\rule{4pt}{0ex}}\cdots \phantom{\rule{4pt}{0ex}}{T}_{r}]\xb7\varphi $. When these entries are linear in
${x}_{1},\dots ,{x}_{n}$, that is, when the entries of
$\varphi $ are linear, then
$\varphi $ is the Jacobian matrix of these equations with respect to
${T}_{1},\dots ,{T}_{r}$. In this setting, one can also define another Jacobian matrix of the same polynomials in
$[{T}_{1}\phantom{\rule{4pt}{0ex}}\cdots \phantom{\rule{4pt}{0ex}}{T}_{r}]\xb7\varphi $ but with respect to
${x}_{1},\cdots ,{x}_{n}$. This new Jacobian matrix is usually denoted by
$B\left(\varphi \right)$ and referred to as the
Jacobian dual of
$\varphi $. We now give the generalized version of this notion when the entries of
$\varphi $ are not necessarily all linear. See [Section 1.5] in [
27,
28] for further information on Jacobian duals.
Definition 2 (Jacobian dual). Let $r=\mu \left(I\right)$ and let ϕ be a presentation matrix of I with respect to a set of r generators of I.
 1.
A Jacobian dual
of ϕ, denoted by $B\left(\varphi \right)$, is defined to be a matrix, whose entries are in $R[{T}_{1},\cdots ,{T}_{r}]$ and linear in the variables ${T}_{1},\cdots ,{T}_{r}$, that satisfies the equation  2.
The reduced Jacobian dual of ϕ, denoted by $\overline{B\left(\varphi \right)}$, is defined to be $B\left(\varphi \right){\otimes}_{k}R/\mathfrak{m}$.
Observe that, given a fixed
$\varphi $, there may be more than one choice for
$B\left(\varphi \right)$, but
$\overline{B\left(\varphi \right)}$ exists uniquely up to elementary row and column rearrangements that come from reorderings (see, for example, [
28]). The matrix
$B\left(\varphi \right)$, or
$\overline{B\left(\varphi \right)}$, has served as a source for the higher degree generators of
J (see, e.g., [
28,
29,
30,
31,
32]), with the emphasis being on minors of
$\overline{B\left(\varphi \right)}$.
Example 1. Consider the graphcorresponding to $I=({x}_{1}{x}_{2},{x}_{2}{x}_{3},{x}_{3}{x}_{4},{x}_{1}{x}_{4},{x}_{4}{x}_{5},{x}_{5}{x}_{6},{x}_{6}{x}_{1},{x}_{7}{x}_{8}).$ Then,where the remaining columns of ϕ correspond to the rest of the (quadratic) Koszul relations on disjoint pairs of edges. The Koszul relations involving ${T}_{1}$ have been included for illustration. Now,When using these equations to form $B\left(\varphi \right)$ as in Definition 2, the nonlinear terms (in the variables ${x}_{i}$s) are ambiguous. For example, ${x}_{3}{x}_{4}{T}_{1}$ can be viewed as ${x}_{3}\left({x}_{4}{T}_{1}\right)$ or as ${x}_{4}\left({x}_{3}{T}_{1}\right)$. Different choices of $B\left(\varphi \right)$ arise from different interpretations for each such nonlinear term in the ${x}_{i}$s. The coefficient of ${x}_{i}$ of the jth equation goes in the $(i,j)$ entry of $B\left(\varphi \right)$. One such choice of $B\left(\varphi \right)$ is Tensoring with $R/\mathfrak{m}$ yields Note that entries of $B\left(\varphi \right)$ that result from interpretations of the nonlinear terms of $\varphi $ become zero when passing to $\overline{B\left(\varphi \right)}$. Thus, the nonzero columns of $\overline{B\left(\varphi \right)}$ correspond precisely to the linear columns of $\varphi $ and the 0rows of $\overline{B\left(\varphi \right)}$ correspond to vertices that do not appear as endpoints of any path of length two in G. Such vertices can be isolated, part of a connected component consisting of a single edge, or the center vertex of a connected component that is a tree of diameter 2. Deleting zerorows and zerocolumns will not change the minors of a matrix. Thus, in practice, when focusing on minors, one can work with a smaller matrix ${\varphi}^{\prime}$ defined by the linear columns of $\varphi $, and assume that the content ideal, ${I}_{1}\left({\varphi}^{\prime}\right)$, is generated by a subset of the variables, say ${x}_{1},\dots ,{x}_{d}$. In this case, $[{T}_{1},\dots ,{T}_{r}]\xb7{\varphi}^{\prime}=[{x}_{1},\dots ,{x}_{d}]\xb7\overline{B\left(\varphi \right)}$.
When
I is a monomial ideal, a particular presentation matrix
$\varphi $ of
I that we make use of comes from the Taylor resolution of
I. We now recall the construction of the Taylor resolution and its presentation matrix (see [
33,
34] for more details). For a collection
$\mathcal{B}=\{{f}_{1},\cdots ,{f}_{r}\}$ of polynomials in
R and a subset
$\sigma \subseteq \mathcal{B}$, let
${f}_{\sigma}$ denote the least common multiple of
$\left\{{f}_{i}\phantom{\rule{3.33333pt}{0ex}}\right\phantom{\rule{3.33333pt}{0ex}}{f}_{i}\in \sigma \}$.
Definition 3. Let $I\subseteq R$ be a monomial ideal with the unique set of monomial generators $\mathcal{B}=\{{f}_{1},\cdots ,{f}_{r}\}$. The Taylor resolution
of I is the following complex:where, for $p=1,\cdots ,r$, ${F}_{p}={R}^{\left(\genfrac{}{}{0pt}{}{r}{p}\right)}$ is the free Rmodule of rank $\left(\genfrac{}{}{0pt}{}{r}{p}\right)$ whose basis corresponds to all subsets of p elements from $\mathcal{B}$, and the differential map ${\partial}_{p}:{F}_{p}\to {F}_{p1}$ is defined, for each basis element ${e}_{\sigma}\in {F}_{p}$ corresponding to a subset σ of cardinality p in $\mathcal{B}$, by The presentation matrix of I from its Taylor resolution is the matrix corresponding to the map ${F}_{2}\stackrel{{\partial}_{2}}{\to}{F}_{1}$; its $(\left\{{f}_{j}\right\},\tau )$entry, for $\left\{{f}_{j}\right\}\subseteq \mathcal{B}$, $\tau \subseteq \mathcal{B}$ with $\left\tau \right=2$, is equal to 0 if ${f}_{j}\notin \tau $, equal to $(1){\displaystyle \frac{{f}_{\tau}}{{f}_{j}}}$ if $\tau =\{{f}_{j},{f}_{k}\}$ and $j<k$, and equal to $\frac{{f}_{\tau}}{{f}_{j}}$ if $\tau =\{{f}_{j},{f}_{k}\}$ and $j>k$.
The matrix $\varphi $ in Example 1 is an instance of the presentation matrix that comes from the Taylor resolution of a monomial ideal. Another important notion that we use is minors and ideals of minors of a matrix.
Definition 4. Let A be an $r\times s$ matrix whose entries are polynomials in R. For $t\le min\{r,s\}$, a $t\times t$ minor of A is the determinant of a $t\times t$ submatrix of A. The ideal in R generated by all $t\times t$ minors of A is often denoted by ${I}_{t}\left(A\right)$. A minor is binomial if it can be written as the sum (or difference) of two monomials in R.
Graph theory. An undirected graph $G=(V,E)$ consists of a set V of distinct points, called the vertices, and a collection E of unordered pairs of vertices, called the edges. We assume that all graphs in this paper are simple; that is, a graph has neither loops nor multiple edges. We write $xy$ for the undirected edge between vertices x and y in a graph.
Definition 5. Let G be an undirected graph.
 1.
A walk is an alternating sequence of vertices and edges ${x}_{1},{e}_{1},{x}_{2},{e}_{2},\cdots ,{e}_{s1},{x}_{s}$ such that ${e}_{i}=\{{x}_{i},{x}_{i+1}\}$ for all $i=1,\cdots ,s1$. Such a walk is said to be closed if ${x}_{1}={x}_{s}$.
 2.
A walk is called a trail if its edges are distinct (while its vertices may repeat). A closed trail is called a circuit.
 3.
A walk is called a path if its edges and vertices are distinct (except possibly at ${x}_{1}={x}_{s}$). A closed path is called a cycle.
 4.
The length of a walk is the number of edges that the walk transverses (including multiplicities). A walk is even (or odd) if its length is an even (or odd) number.
We often list only the vertices to indicate a walk since the edges are obvious from the vertices. The main graphtheoretic structure that our work captures in this paper is indecomposable even circuits, which we define below. We also recall a similar notion of primitive even closed walks.
Definition 6. Let G be a graph.
 1.
An even circuit is indecomposable if it cannot be realized as the edgedisjoint union of two smaller even circuits.
 2.
An even closed walk is primitive if it does not contain an even closed subwalk.
Remark 1. There is a close connection between even closed walks in a graph G and the equations of the Rees algebra of the edge ideal of G (see [35]). In particular, suppose ${x}_{1},{e}_{1},{x}_{2},{e}_{2},\cdots ,{e}_{2s1},{x}_{2s},{e}_{2s}$, where ${e}_{i}=\{{x}_{i},{x}_{i+1}\}$ and ${e}_{2s}=\{{x}_{2s},{x}_{1}\}$, is an even closed walk and $\theta \left({T}_{i}\right)={e}_{i}$ as in Definition 1. Then,so ${\prod}_{i=1}^{s}{T}_{2i}{\prod}_{i=1}^{s}{T}_{2i1}\in J$. An application of our work is to directed graphs, thus we also recall basic terminology for directed graphs. A digraph $D=(Z,\overrightarrow{E})$ consists of a set Z of distinct points, called the vertices, and a collection $\overrightarrow{E}$ of ordered pairs of vertices, called the directed edges. We also assume that all digraphs in this paper are simple digraphs. We write $x\to y$ for the directed edge from x to y in a digraph.
Directed walks, paths, circuits and cycles in a digraph can be defined similarly to those in an undirected graph with only one difference, that is, if ${x}_{1},{e}_{1},{x}_{2},\cdots ,{e}_{s1},{x}_{s}$ represents a directed walk from ${x}_{1}$ to ${x}_{s}$, then ${e}_{i}$ is the directed edge ${x}_{i}\to {x}_{i+1}$ for all $i=1,\cdots ,s1$.
The application of our work to directed cycles in digraphs is based on the following construction [
36].
Definition 7. Let $D=(Z,\overrightarrow{E})$ be a digraph over the vertex set $Z=\{{z}_{1},\cdots ,{z}_{m}\}$. The bipartite graph $G\left(D\right)$, associated to D, is constructed as follows.
 1.
The vertices of $G\left(D\right)$ are $\{{x}_{1},\cdots ,{x}_{m},{y}_{1},\cdots ,{y}_{m}\}$.
 2.
The edges of $G\left(D\right)$ are:
 (a)
$\{{x}_{i},{y}_{i}\}$ for all $i=1,\cdots ,m$; and
 (b)
$\{{x}_{i},{y}_{j}\}$, for $i\ne j$, if ${z}_{i}\to {z}_{j}$ is an edge in $\overrightarrow{E}$.
It is easy to see that, for any digraph $D=(Z,\overrightarrow{E})$, the bipartite graph $G\left(D\right)$ has a perfect matching $\left\{{e}_{i}=\{{x}_{i},{y}_{i}\}\phantom{\rule{3.33333pt}{0ex}}\phantom{\rule{3.33333pt}{0ex}}i=1,\cdots ,m\right\}$. We denote this perfect matching of $G\left(D\right)$ by ${M}_{D}$.
Example 2. Let D be directed graph Then, the bipartite graph $G=G\left(D\right)$ associated to D is 3. Even Circuits in Graphs
In this section, we present an algebraic algorithm to enumerate indecomposable even circuits in a graph. Recall that $G=(V,E)$ is a simple graph on the vertex set $V=\{{x}_{1},\cdots ,{x}_{n}\}$ with $r=\leftE\right$. For $I=I\left(G\right)$, fix $\varphi $ to be the presentation matrix of $I=I\left(G\right)$ that results from the Taylor resolution of I, as in Definition 3. For the remainder of the paper, $\varphi $ always refers to the Taylor presentation matrix unless otherwise noted.
We start with the following simple observation about $\varphi $. Example 1 already illustrates the statements below, which are generally known but written here for ease of reference.
Lemma 1. If G is a graph and $I=I\left(G\right)$, then the following statements hold.
 1.
The entries of ϕ are monomials in $\{{x}_{1},\dots ,{x}_{n}\}$.
 2.
Every column of ϕ has precisely two nonzero entries.
 3.
The nonzero entries in each column of ϕ are either both linear or both quadratic.
 4.
Every linear column of ϕ corresponds to a path of length 2 in G whose endvertices are the nonzero entries of this column.
 5.
Every quadratic column of ϕ corresponds to a pair of disjoint edges.
Proof. The assertions are straightforward from the construction of the Taylor resolution of $I\left(G\right)$. Note that, in general, all relations on a set of monomials can be generated by pairwise relations (i.e., relations of two monomials). If ${m}_{1},{m}_{2}$ are monomials, then a minimal relation between them has the form $a{m}_{1}+b{m}_{2}=0$ where $a=(lcm({m}_{1},{m}_{2})/{m}_{1})$ and $b=(lcm({m}_{1},{m}_{2})/{m}_{2})$ are monomials. If ${m}_{1}\ne {m}_{2}$ both have degree 2, then $a={m}_{2},b={m}_{1}$ if ${m}_{1},{m}_{2}$ have disjoint support. Otherwise, $a,b$ both have degree one. The results follow. □
As above, we denote by $B\left(\varphi \right)$ and $\overline{B\left(\varphi \right)}$ the Jacobian dual and the reduced Jacobian dual of $\varphi $, respectively. We obtain an immediate corollary of Lemma 1 when $\varphi $ is assumed to be the Taylor presentation matrix of $I\left(G\right)$ for a graph G.
Corollary 1. The nonzero columns of $\overline{B\left(\varphi \right)}$ are precisely the columns of $B\left(\varphi \right)$ that correspond to linear columns of ϕ. Particularly, each nonzero column of $\overline{B\left(\varphi \right)}$ contains precisely two nonzero entries, each of which is a degree one monomial in ${T}_{1},\dots ,{T}_{r}$.
Proof. By definition, the nonzero entries of
$\overline{B\left(\varphi \right)}$ come from nonzero entries of
$B\left(\varphi \right)$ that are contained in
$\mathbb{k}[{T}_{1},\dots ,{T}_{r}]$. Observe, by the equation
that the columns of
$B\left(\varphi \right)$ correspond to columns of
$\varphi $. Moreover, by Lemma 1, the nonzero entries in each column of
$\varphi $ are of the same degrees (either linear or quadratic). It further follows from Equation (
1) that the degree with respect to the
${x}_{i}$s of nonzero entries of a column in
$B\left(\varphi \right)$ is exactly one less than that of the corresponding column of
$\varphi $. Hence, nonzero columns of
$\overline{B\left(\varphi \right)}$ correspond to columns without the
${x}_{i}$s in
$B\left(\varphi \right)$, which correspond to columns of linear forms (and 0) in
$\varphi $.
The second statement also follows from Lemma 1. □
Remark 2. Note that, since zero columns of a matrix do not play any role in what follows, we could define $\overline{B\left(\varphi \right)}$ to exclude all its zero columns. That is, we are working just with the (uniquely defined) columns of ϕ, whose nonzero entries are linear, that result from binomial relations of edges in paths of length 2 in G. As mentioned above, zero rows of $\overline{B\left(\varphi \right)}$ do not play a role and can be eliminated by using the content ideal of ϕ to define $B\left(\varphi \right)$ rather than $\mathfrak{m}$. However, since zero rows do not affect minors, which are our main focus when using $\overline{B\left(\varphi \right)}$, it is a matter of convenience to allow them.
As stated in Lemma 1, the linear columns of $\varphi $ are generated by pairs of monomials corresponding to edges that share a vertex. In other words, the linear columns of $\varphi $ correspond to paths of length 2 in the graph. It can be desirable for computational purposes to use a minimal presentation matrix for $\varphi $ rather than the full Taylor presentation matrix. It is easy to check that there are three paths of length two in each triangle, yielding three linear relations, any two of which generate the third. Since this is the only redundancy among the linear relations for a graph, if the graph is triangle free, the linear columns of a minimal presentation matrix will be the same as the linear columns of the Taylor presentation matrix.
Since the linear columns arise from paths of length two, as seen in Lemma 1, the endpoints of each path are the nonzero entries of that column of $\varphi $. These endpoints will thus be encoded in the corresponding column of $B\left(\varphi \right)$ as the rows in which the nonzero entries appear. It is natural to expect that the third vertex, the midpoint of the path, would play a role.
Definition 8. We call two nonzero columns of $\overline{B\left(\varphi \right)}$ centerdistinct if their corresponding paths of length 2 in G have distinct middle vertices. We also call the middle vertices of these paths of length 2 the midpoints of the corresponding columns.
Finding the midpoint of a column of $\overline{B\left(\varphi \right)}$ can be done easily by examining the corresponding edges of G. If ${T}_{i}$ and ${T}_{j}$ are the two nonzero entries of a column of $\overline{B\left(\varphi \right)}$ and ${f}_{i},{f}_{j}$ are the corresponding edges of G (that is, $\theta \left({T}_{i}\right)={f}_{i}t$, and $\theta \left({T}_{j}\right)={f}_{j}t)$), then the midpoint of the column is $\mathrm{supp}{f}_{i}\cap \mathrm{supp}{f}_{j}$, or equivalently $gcd({f}_{i},{f}_{j})$.
The next lemma collects information that can be gleaned about a graph from minors of $\overline{B\left(\varphi \right)}$ of a form that appears frequently in the remainder of the article.
Lemma 2. If $\overline{B\left(\varphi \right)}$ has a minor of the formthen G contains an even closed walk corresponding to $detM$. Moreover,  1.
the walk is primitive if and only if the columns of M are pairwise centerdistinct; and
 2.
the walk is a circuit if and only if the nonzero entries of M are distinct, in which case the circuit is indecomposable if and only if the columns of M are pairwise centerdistinct.
Proof. Combining Equation (
1) with Lemma 1 gives that each column of
M corresponds to a path of length 2 in
G whose endvertices are labeled by the rows of
M corresponding to the nonzero entries in that column. By reindexing the variables, we may assume that the rows of
M correspond to the variables
${x}_{1},\cdots ,{x}_{t}$. Then, the
ith column of
M, for
$1\le i\le t1$, corresponds to a path of length 2 from
${x}_{i}$ to
${x}_{i+1}$, and the last column of
M corresponds to a path of length 2 from
${x}_{t}$ to
${x}_{1}$. We denote those paths by
${x}_{i},{y}_{i},{x}_{i+1}$, for
$i=1,\cdots ,t1$, and
${x}_{t},{y}_{t},{x}_{1}$. Furthermore, edges on these paths correspond to the variables
${T}_{1},\cdots ,{T}_{2t}$. Hence, these paths glue together to form an even closed walk of length
$2t$ in
G. Since
$detM={\prod}_{i=1}^{t}{T}_{2i}{\prod}_{i=1}^{t}{T}_{2i1}$, we have that
$detM$ corresponds to an even closed walk in
G, as in Remark 1. This walk is a circuit if and only if the
${T}_{i}$, and thus the corresponding edges, are distinct. Finally, the columns of
M are pairwise centerdistinct if and only if the vertices
${y}_{1},\cdots ,{y}_{t}$ are pairwise distinct. Note that the vertices
${x}_{1},\dots ,{x}_{t}$ are distinct by definition. This guarantees that the obtained closed walk or circuit of length
$2t$ in
G is primitive or indecomposable, respectively, if and only if the columns of
M are pairwise centerdistinct. □
We are now ready to prove the main result of the paper, Theorem 1. Note that relabeling the vertices or edges of a graph corresponds to rearranging the rows of $\varphi $ or of $B\left(\varphi \right)$. Such a rearrangement will not affect the minors of a matrix, thus, when convenient, a specific labeling of vertices can be used without loss of generality.
Theorem 1. Let G be a graph. Then, the indecomposable even circuits of G correspond exactly to the binomial minors of $\overline{B\left(\varphi \right)}$, which satisfy the following conditions:
Proof. Suppose that
C is an indecomposable even circuit in
G. For ease of notation, select a labeling on the vertices and edges so that the edges of
C (in order) are
${e}_{1},\cdots ,{e}_{2t}$, where
${e}_{i}={x}_{i}{x}_{i+1}$ for
$i<2t$ and
${e}_{2t}={x}_{2t}{x}_{1}$. Since
C is indecomposable, it is easy to see that
${x}_{1},{x}_{3},\cdots ,{x}_{2t1}$ are pairwise distinct. Particularly, the linear relations of
$I=I\left(G\right)$ include
${x}_{1}{e}_{2}{x}_{3}{e}_{1},{x}_{3}{e}_{4}{x}_{5}{e}_{3},\dots ,{x}_{2t1}{e}_{2t}{x}_{1}{e}_{2t1}$ which correspond to the following columns of
$\varphi $:
where, for convenience, labelings were chosen so that
${T}_{i}$ corresponds to
${e}_{i}$ for
$1\le i\le 2t$.
We can reorder the columns of
$\varphi $ so that these are the first
t columns. These columns produce
${x}_{1}{T}_{2}{x}_{3}{T}_{1},{x}_{3}{T}_{4}{x}_{5}{T}_{3},\dots ,{x}_{2t1}{T}_{2t}{x}_{1}{T}_{2t1}$ as linear equations of the Rees algebra
$R\left[It\right]$, which correspond to the first
t equations of
$[{x}_{1}\phantom{\rule{4pt}{0ex}}\cdots \phantom{\rule{4pt}{0ex}}{x}_{n}]\xb7B\left(\varphi \right)$. Thus, the first
t columns of
$B\left(\varphi \right)$ are:
By Corollary 1, these columns of
$B\left(\varphi \right)$ are unchanged when passing to
$\overline{B\left(\varphi \right)}$. Consider the
$t\times t$ submatrix
M of
$\overline{B\left(\varphi \right)}$ consisting of the first
t columns and the
t identified nonzero rows:
Then, $det\left(M\right)={\prod}_{i=1}^{t}{T}_{2i}{\prod}_{i=1}^{t}{T}_{2i1}$. This is a binomial whose monomials are squarefree and relatively prime. Observe further that, since C is indecomposable, ${x}_{2},{x}_{4},\cdots ,{x}_{2t}$ are pairwise distinct. Therefore, the columns of M are pairwise centerdistinct.
Conversely, suppose that M is a $t\times t$ submatrix of $\overline{B\left(\varphi \right)}$ whose determinant is a binomial of degree t with squarefree and relatively prime monomials, and whose columns are pairwise centerdistinct. It follows from Lemma 1 and Corollary 1 that each column of M contains at most two nonzero entries. Since the monomials in $det\left(M\right)$ are relatively prime, each column of M must contain exactly two nonzero entries. Particularly, M contains exactly $2t$ nonzero entries. In addition, since the monomials in $det\left(M\right)$ are relatively prime, $det\left(M\right)$ contains exactly $2t$ distinct variables. Thus, all the $2t$ nonzero entries of M are distinct. Since each row also contains at least two distinct entries in order for the monomials to be relatively prime, a simple counting argument guarantees exactly two nonzero entries per row as well.
Now, by rearranging the rows and columns of
M, it is easy to put
M in a blockmatrix form, where each nonzero block is of the form in Equation (
2) and lies on the diagonal. Observe further that, if
M has more than one such block, then
$det\left(M\right)$ is not a binomial since all entries of
M are distinct. Therefore, we can assume that
M is exactly as in Equation (
2). The result now follows from Lemma 2. □
Theorem 1 gives us the following algebraic algorithm to detect the existence of and list all even circuits in a given graph G.
Algorithm 1 To enumerate all indecomposable even circuits in a given graph G 
Form $\varphi $. Compute $\overline{B\left(\varphi \right)}$. for t from 1 to the rank of $\overline{B\left(\varphi \right)}$ compute all $t\times t$ minors of $\overline{B\left(\varphi \right)}$. Test if each minor satisfies the following conditions:
 (a)
its columns are pairwise centerdistinct; and  (b)
its determinant is a binomial whose monomials are squarefree and relatively prime.
If the answer is “Yes”, then return the rows and centers of the columns corresponding to the minor. These are the vertices of an indecomposable even circuit in G.

Remark 3. Note that only the linear columns of ϕ are necessary in this process and so in Step 1 only the linear relations need be considered. Note also that the Taylor resolution and its presentation matrix can be constructed in polynomial time on the number of generators of $I\left(G\right)$ (i.e., the number of edges in G). Note further that the computation of the determinant of a matrix can also be done in polynomial time on the size of the matrix, and the rank of $\overline{B\left(\varphi \right)}$ is at most the number of edges in G. Finally, testing if the columns of a minor in $\overline{B\left(\varphi \right)}$ are centerdistinct can be done in polynomial time on the size of the minor, which is bounded by the number of edges in G. Thus, Algorithm 1 runs in polynomial time on the size of the edge set of G.
Example 3. Consider the following graph. The nonzero columns of the reduced Jacobian dual of G corresponding to the Taylor presentation matrix ϕ are computed to be:where the labels ${x}_{1},\cdots ,{x}_{5}$ indicate the variables of the corresponding rows. Furthermore, the midpoints of the columns are successively ${x}_{2},{x}_{3},{x}_{1},{x}_{4},{x}_{5},{x}_{3},{x}_{3},{x}_{3},{x}_{3},{x}_{3}$. By evaluating the minors of $\overline{B\left(\varphi \right)}$, the only binomial minor whose monomials are squarefree and relatively prime is ${T}_{1}{T}_{4}{T}_{6}{T}_{2}{T}_{3}{T}_{5}$, which corresponds to the only indecomposable even circuit ${x}_{1},{x}_{2},{x}_{3},{x}_{4},{x}_{5},{x}_{3},{x}_{1}$ in G. This minor appears using the submatrix formed by taking Rows $1,3,4$ and Columns $1,5,9$, for example, or the one formed by Rows $2,3,4$ and Columns $3,5,7$. Remark 4. There can be binomial minors of $\overline{B\left(\varphi \right)}$ whose monomials are neither squarefree nor relatively prime. These minors may correspond to even closed walks which transverse an edge multiple times.
Example 4. Consider the following graph. The nonzero columns of the reduced Jacobian dual of $I\left(G\right)$ with respect to the Taylor presentation matrix ϕ are computed to be:where the labels ${x}_{1},\cdots ,{x}_{6}$ indicate the variables of the corresponding rows. Furthermore, the midpoints of the columns are successively ${x}_{2},{x}_{3},{x}_{1},{x}_{3},{x}_{3},{x}_{4},{x}_{4},{x}_{5},{x}_{6},{x}_{4}$. The only binomial minor of $\overline{B\left(\varphi \right)}$ is ${T}_{2}{T}_{3}{T}_{5}{T}_{7}{T}_{1}{T}_{4}^{2}{T}_{6}$. This corresponds to submatrices formed using Rows $1,3,4,5$ and Columns $1,5,6,9$ for example, or Rows $2,3,4,6$ and Columns $3,4,7,8$. A monomial of this minor is not squarefree. This indicates that G contains an even closed walk ${x}_{2},{x}_{3},{x}_{4},{x}_{5},{x}_{6},{x}_{4},{x}_{3},{x}_{1},{x}_{2}$, but this walk is not a circuit because it transverses through the edge ${T}_{4}$ twice. Hence, G has no indecomposable even circuits.
Remark 5. With basically the same proof as that of Theorem 1, it can be shown that the even cycles of G correspond exactly to the binomial minors of $\overline{B\left(\varphi \right)}$, which satisfy the following conditions:
 1.
the monomials in these binomials are squarefree and relatively prime; and
 2.
the variables labeling the rows and the midpoints of the columns of the corresponding submatrices are pairwise distinct.
Example 5. Let G be the graph in Example 3. As shown in Example 3, the only binomial minor of $\overline{B\left(\varphi \right)}$ whose monomials are squarefree and relatively prime is ${T}_{1}{T}_{4}{T}_{6}{T}_{2}{T}_{3}{T}_{5}$. This minor is obtained by taking Rows $1,3,4$ and Columns $1,5,9$. In this minor, the midpoints of the columns are ${x}_{2},{x}_{5}$ and ${x}_{3}$. On the other hand, the variables labeling the rows are ${x}_{1},{x}_{3}$ and ${x}_{4}$. Clearly, we have a repeated ${x}_{3}$ among the midpoints and the row labels. Thus, this minor corresponds to an even indecomposable circuit, which is not a cycle.
Example 6. Let G be the graph in Example 1. A binomial minor of $\overline{B\left(\varphi \right)}$ whose monomials are squarefree and relatively prime is ${T}_{2}{T}_{5}{T}_{7}{T}_{1}{T}_{3}{T}_{6}$. This minor is obtained by taking Rows $1,3,5$ and Columns $1,5,9$. The midpoints of the columns are ${x}_{2},{x}_{4}$ and ${x}_{6}$, and the variables labeling the rows are ${x}_{1},{x}_{3}$ and ${x}_{5}$. Since these are distinct variables, this minor corresponds to an even cycle ${x}_{1},{x}_{2},{x}_{3},{x}_{4},{x}_{5},{x}_{6},{x}_{1}$.
We continue this section by discussing an algebraic consequence of Theorem 1 in finding defining equations for the Rees algebras of edge ideals of graphs. Recall that the Rees algebra $R\left[It\right]$ of I has a presentation $R[{T}_{1},\cdots ,{T}_{r}]\stackrel{\theta}{\to}R\left[It\right]\to 0$, and $J=\mathrm{ker}\phantom{\rule{4.pt}{0ex}}\theta $ is called the defining ideal of $R\left[It\right]$.
It was shown in [
35] that the nonlinear equations of
J arise from the even closed walks in the graph
G. An alternate proof of this fact appears in Chapter 10.1 of [
24]. In addition, it was proved in [Corollary 10.1.5] of [
24] that the generators correspond to primitive even closed walks and form a reduced Gröbner basis for
J. The binomials corresponding to indecomposable even circuits of
G are thus known to be elements of
J. However, there are elements of
J that do not correspond to indecomposable circuits, as seen in Example 4. It is worth noting that it was established in a more general setting that the maximal minors of
$\overline{B\left(\varphi \right)}$ are contained in
J (see, for example, [
31]). A close examination of the proof of Theorem 1 shows that any even closed walk in
G corresponds to a binomial minor of
$\overline{B\left(\varphi \right)}$.
Corollary 2. Let G be a graph with edge ideal $I=I\left(G\right)$, and let J be the defining ideal of $R\left[It\right]$. Then, every nonlinear generator of J appears as a binomial minor of $\overline{B\left(\varphi \right)}$.
Proof. By the work in [
35] and (Chapter 10.1 [
24]), we have that the nonlinear generators of
J correspond to primitive even closed walks in
G. Consider any primitive even closed walk
W in
G and, after a relabeling, suppose that the vertices on
W are
${x}_{1},\cdots ,{x}_{2t}$ (not necessarily distinct).
Observe that, since W is primitive, if ${x}_{i}={x}_{j}$ is a repeated vertex in W, then i and j are of different parity. View W as the union of t paths of length 2, namely, ${P}_{i}={x}_{2i1},{x}_{2i},{x}_{2i+1}$, for $i=1,\cdots t$ (where ${x}_{2t+1}={x}_{1}$). Then, the endpoints of each path ${P}_{i}$ are distinct vertices. Thus, ${P}_{i}$ corresponds to a column of $\overline{B\left(\varphi \right)}$ with exactly two nonzero entries, appearing in the rows labeled by ${x}_{2i1}\ne {x}_{2i+1}$. Selecting these columns and the corresponding nonzero rows results in a $t\times t$ submatrix ${M}_{W}$ of $\overline{B\left(\varphi \right)}$.
As in the proof of Theorem 1, the rows and columns of
${M}_{W}$ can be rearranged so that
${M}_{W}$ is a blockmatrix in which each block is of the form of Equation (
2). If there are multiple blocks, then each corresponds to an even closed walk contained in
W by Lemma 2, a contradiction to the fact that
W is primitive. Therefore,
${M}_{W}$ is of the form in Equation (
2), where the nonzero entries may not be distinct. Hence, the corresponding generator of
J is the same as
$det\left({M}_{W}\right)$, which is a binomial minor of
$\overline{B\left(\varphi \right)}$. □
Let
$\mathbf{T}=[{T}_{1}\phantom{\rule{4pt}{0ex}}\cdots \phantom{\rule{4pt}{0ex}}{T}_{r}]$. Corollary 2 gives us the containment
where
k is the rank of
$\overline{B\left(\varphi \right)}$. The reverse containment fails to hold. In general,
${I}_{t}\left(\overline{B\left(\varphi \right)}\right)$ will contain monomials that are not in
J. For instance, in Example 1,
${T}_{2}{T}_{3}\in {I}_{2}\left(\overline{B\left(\varphi \right)}\right)$ but
${T}_{2}{T}_{3}\notin J$. Interestingly, we see that by restricting to binomial minors we in fact obtain an equality. While not all binomial minors of
$\overline{B\left(\varphi \right)}$ are minimal generators of
J, such minors correspond to multiples of binomials which come from (not necessarily primitive) even closed walks and are elements of
J. The following lemma is used in proving the desired equality. For convenience, we consider 1 to be a trivial monomial.
Lemma 3. Suppose ψ is an $n\times n$ matrix such that:
 1.
$det\left(\psi \right)$ is a nonzero binomial; and
 2.
every column of ψ has at most 2 nonzero entries.
Then, after row and column rearrangements, ψ has a block decompositionwhere $det\left(X\right)$ is a monomial, $det\left(Z\right)$ is a binomial, $det\left(\psi \right)=det\left(X\right)det\left(Z\right)$, and every row of Z has at least two nonzero entries and every column of Z has exactly two nonzero entries. Proof. If every row of $\psi $ has at least two nonzero entries and every column of $\psi $ has exactly two nonzero entries, set $X,Y,W$ to be empty matrices and $Z=\psi $. Then, since an empty product is defined to be 1, $det\left(X\right)=1$ is a (degenerate) monomial, and the result holds. In particular, the result holds when $n=2$. Assume $n>2$.
Assume there exist
s rows of
$\psi $ with a single nonzero entry. Since
$det\left(\psi \right)\ne 0$, every row and column of
$\psi $ has at least one nonzero entry and no two rows (columns) have a single nonzero entry in the same column (row). Note also that row and column exchanges modify only the sign of the determinant and not the binomial nature. By performing row exchanges, we can rearrange all rows with a single nonzero entry to come before all rows with multiple nonzero entries. That is, we may assume that
$\psi $ has the form
where
${D}_{1}$ is an
$s\times s$ diagonal matrix, and
${A}_{1}$ is a matrix where each column has at most one nonzero entry. Observe that
$det\left({D}_{1}\right)$ is a monomial and
$det\left(\psi \right)=det\left({D}_{1}\right)det\left({\psi}_{1}\right)$, thus
$det\left({\psi}_{1}\right)$ is again a nonzero binomial. As before, each column of
${\psi}_{1}$ has either one or two nonzero entries and each row has at least one nonzero entry. Since
${\psi}_{1}$ is
$ns\times ns$ with
$s\ge 1$, by induction,
where
$det\left({X}_{1}\right)$ is a monomial,
$det\left({Z}_{1}\right)$ is a binomial,
$det\left({\psi}_{1}\right)=det\left({X}_{1}\right)det\left({Z}_{1}\right)$, and every row of
${Z}_{1}$ has at least two nonzero entries and every column of
${Z}_{1}$ has exactly two nonzero entries. Now,
where
${A}_{1}^{\prime},{A}_{1}^{\u2033}$ consist of the appropriate rows of
${A}_{1}$. Set
$Z={Z}_{1}$,
$X=\left[\begin{array}{cc}{D}_{1}& 0\\ {A}_{1}^{\prime}& {X}_{1}\end{array}\right]$,
$W=\left[\begin{array}{c}0\\ {W}_{1}\end{array}\right]$, and
$Y=\left[\begin{array}{cc}{A}_{1}^{\u2033}& {Y}_{1}\end{array}\right]$. Note that
and the result follows.
Similarly, if any column of
$\psi $ has a single nonzero entry, then by performing column exchanges, we may assume
$\psi $ has the form
where
${D}_{2}$ is a diagonal matrix. Observe that
$det\left(\psi \right)=det\left({D}_{1}\right)det\left({\psi}_{2}\right)$ and
$det\left({D}_{2}\right)$ is a monomial, thus
$det\left({\psi}_{2}\right)$ is again a nonzero binomial. As before, each column of
${\psi}_{2}$ has either one or two nonzero entries and each row has at least one nonzero entry and the result follows by induction as in the case above. □
Note that in the above lemma, since the columns of Z have two nonzero entries each and the columns of $\psi $ have at most two nonzero entries, it follows that $W=0$. To state our next result formally, for a matrix M, set $bi\left({I}_{t}\left(M\right)\right)$ to be the collection of $t\times t$ minors of M that are binomials.
Theorem 3. Let G be a graph with edge ideal $I=I\left(G\right)$. Let J be the defining ideal of $R\left[It\right]$ and let $k=rank\overline{B\left(\varphi \right)}$. Then, Proof. One inclusion follows directly from Corollary 2.
For the reverse inclusion, suppose that $\psi $ is a $t\times t$ submatrix of $\overline{B\left(\varphi \right)}$ with $det\left(\psi \right)$ a binomial. We show that $det\left(\psi \right)\in J$. Indeed, since $det\left(\psi \right)\ne 0$, every row and column of $\psi $ has at least one nonzero entry and no two rows (columns) have a single nonzero entry in the same column (row). As noted before, each nonzero column of $\overline{B\left(\varphi \right)}$ has precisely two nonzero entries. Thus, each column of $\psi $ has at most two nonzero entries. Applying Lemma 3, we can assume that $\psi =\left[\begin{array}{cc}A& B\\ C& {\psi}_{p}\end{array}\right]$ where ${\psi}_{p}$ is a minor of $\psi $ in which every column has exactly two nonzero entries, every row has at least two nonzero entries, and $det\left({\psi}_{p}\right)$ is a nonzero binomial with $det\left(\psi \right)=det\left(A\right)det\left({\psi}_{p}\right)$. Thus, if $det\left({\psi}_{p}\right)\in J$, then $det\left(\psi \right)\in J$.
Now, we can reorder the rows of
${\psi}_{p}$ so that the nonzero entries of the first column appear in the first two rows. Since the second row has at least two nonzero entries, we can rearrange the remaining columns of
${\psi}_{p}$ so that the
$(2,2)$ entry is not zero. If the second nonzero entry of Column 2 is not in Row 1, then we can rearrange the remaining rows so that the
$(3,2)$ entry of
${\psi}_{p}$ is not zero. We can continue to rearrange the rows and columns of
${\psi}_{p}$ in this manner (see also Equation (
2)) until for some row
i, the remaining columns with nonzero entries in row
i have the second nonzero entry in row
j for some
$j<i$. At this point,
${\psi}_{p}$ has the following form
where ∗ denotes a nonzero entry and the position of the second ∗ in the final column before
N is illustrative. Notice that
${\psi}_{p}$ has a minor of the form of Equation (
2). In addition,
${\psi}_{p}$ has the form
where
${L}_{{\psi}_{p}}$ is lower triangular (the empty matrix if
$j=1$), and
${M}_{{\psi}_{p}}$ has the form of Equation (
2). Note that
By Lemma 2, $det\left({M}_{{\psi}_{p}}\right)\in J$, and since J is closed under multiplication, $det\left(\psi \right)\in J$ as required. □
Remark 6. It can be seen in the proof above that every row of ${\psi}_{p+1}$ has at least two nonzero entries and each column has either one or two nonzero entries. We can continue the process to get a block decomposition of ψ, in which the determinant is the product of the determinants of the diagonal blocks, each of which is either a monomial or a binomial coming from a block of the form of Equation (2). Hence, $det\left(\psi \right)$ can be written as a product of monomials and of binomials coming from blocks of the form of Equation (2). Since minors of the form of Equation (2) correspond to (not necessarily primitive) even closed walks, these binomials are in J by [35]. Thus, not only are the binomial minors in J, if they are not irreducible, they factor as products of monomials and binomial elements of J. In the proof of Theorem 3, the fact that $det\left(\psi \right)$ was a binomial came from the statement. Since the entries of $\psi $ are not assumed to be distinct, it is possible for the product of two binomials to be a binomial. However, much of the proof holds if instead $det\left(\psi \right)$ is assumed not to be a monomial. The following result demonstrates how to use this to obtain all nonlinear generators of J from a single sized ideal of minors of $\overline{B\left(\varphi \right)}$.
Corollary 3. Let $k=rank\overline{B\left(\varphi \right)}$. Then, all nonlinear generators of J can be obtained as factors of generators of ${I}_{k}\left(\overline{B\left(\varphi \right)}\right)$.
Proof. By Corollary 2, every nonlinear generator of
J appears as some binomial minor of
$\overline{B\left(\varphi \right)}$. Let
f be a nonlinear generator of
J and let
M be the corresponding submatrix of
$\overline{B\left(\varphi \right)}$. Since
J is generated by primitive even walks, the monomials in
f are relatively prime, thus every column of
M contains exactly two nonzero entries. By performing row and column exchanges, write
The set of columns of
$\overline{B\left(\varphi \right)}$ used to form
M can be extended to a set of columns of full rank. That is, by selecting appropriate columns and rows from
${B}_{2}$, there is a
$k\times k$ submatrix of
$\overline{B\left(\varphi \right)}$ of the form
with nonzero determinant. Since
$det\left(\widehat{M}\right)=det\left(M\right)det\left({B}_{2}^{\prime}\right)$,
f is a factor of an element of
${I}_{k}\left(\overline{B\left(\varphi \right)}\right)$ as desired. □
4. Directed Cycles in Digraphs
In this part of the paper, we discuss an interesting application of our main result, Theorem 1, to the problem of detecting the existence of directed cycles in a given directed graph.
Let $D=(Z,\overrightarrow{E})$ be a directed graph over the vertex set $Z=\{{z}_{1},\cdots ,{z}_{m}\}$. Let $G=G\left(D\right)$ be the undirected bipartite graph constructed from D as in Definition 7. Recall that ${M}_{D}$ represents the perfect matching $\left\{{e}_{i}={x}_{i}{y}_{i}\phantom{\rule{3.33333pt}{0ex}}\phantom{\rule{3.33333pt}{0ex}}i=1,\cdots ,m\right\}$ in $G=G\left(D\right)$.
The connection between directed cycles in a digraph
D and even cycles in
$G\left(D\right)$ is well established (see, for example, [
22,
23]). We present the following known result in a form that is convenient for applying Theorem 1. Note that, in an even circuit, we can start at any place and collect the first, third, fifth, etc. (all the odd ordered) edges, or collect the second, fourth, etc. (all the even ordered) edges. This way we get two sets of disjoint edges, each consisting of exactly half the number of edges on the circuit. We refer to each of these two sets a
collection of alternating edges in the even circuit.
Theorem 2. The directed cycles in D correspond exactly to the even cycles in $G=G\left(D\right)$ in which a collection of alternating edges forms a subset of the perfect matching ${M}_{D}$ in G.
Proof. We start the proof with the following observation. Consider an even circuit C in G with the property that its alternating edges form a subset of the perfect matching ${M}_{D}$. It can be seen that, if one transverses around C on its edges and hits ${x}_{i}$ (or ${y}_{i}$) from an edge that is not in ${M}_{D}$, then the next edge of C has to be ${x}_{i}{y}_{i}$. Since in a circuit the edges are distinct, this ensures that C cannot contain ${x}_{i}$ (or ${y}_{i}$) more than once. That is, C is a cycle (which is necessarily indecomposable). Thus, the indecomposable circuits in G with the property that a collection of their alternating edges forms a subset of the perfect matching ${M}_{D}$ are exactly the even cycles in G with the same property.
Suppose that ${z}_{{i}_{1}}\to {z}_{{i}_{2}}\to \cdots \to {z}_{{i}_{t}}\to {z}_{{i}_{1}}$ is a directed cycle in D. By the construction of G, it is easy to see that ${x}_{{i}_{1}},{y}_{{i}_{2}},{x}_{{i}_{2}},{y}_{{i}_{3}},{x}_{{i}_{3}},\cdots ,{x}_{{i}_{t}},{y}_{{i}_{1}},{x}_{{i}_{1}}$ is an indecomposable even circuit in G. Moreover, the collection of even edges in this circuit is $\{{e}_{{i}_{1}},\cdots ,{e}_{{i}_{t}}\}$, which is a subset of the perfect matching ${M}_{D}$.
Conversely, suppose that G contains an indecomposable even circuit C in which a collection of alternating edges form a subset of the perfect matching ${M}_{D}$. Since G is bipartite, every edge in G (and so any edge in C) connects a vertex ${x}_{{i}_{j}}$ to a vertex ${y}_{{i}_{k}}$. Thus, without loss of generality, we may assume that the circuit C is of the form ${x}_{{i}_{1}},{y}_{{i}_{2}},{x}_{{i}_{2}},{y}_{{i}_{3}},{x}_{{i}_{3}},\cdots ,{x}_{{i}_{t}},{y}_{{i}_{1}},{x}_{{i}_{1}}$. Since C is a circuit and C contains $\{{e}_{{i}_{1}},\cdots ,{e}_{{i}_{t}}\}$, it follows that ${i}_{1},\cdots ,{i}_{t}$ are distinct indices. By the construction of G again, we have a directed cycle ${z}_{{i}_{1}}\to {z}_{{i}_{2}}\to \cdots \to {z}_{{i}_{t}}\to {z}_{{i}_{1}}$ in D. □
Example 7. Let D be the directed graph in Example 2 and let $G=G\left(D\right)$ be its associated bipartite graph. It can be seen that G has only one even cycle whose alternating edges form a subset of the perfect matching ${M}_{D}$, namely, ${x}_{2},{y}_{3},{x}_{3},{y}_{5},{x}_{5},{y}_{4},{x}_{4},{y}_{2},{x}_{2}$. This even cycle of G corresponds to the directed cycle ${z}_{2}\to {z}_{3}\to {z}_{5}\to {z}_{4}\to {z}_{2}$ in D.
Note that ${z}_{1},{z}_{2},{z}_{3},{z}_{1}$ does not form a directed cycle in D even though its undirected edges would form a triangle. This is reflected by the fact that there is no even cycle between ${x}_{1},{y}_{1},{x}_{2},{y}_{2},{x}_{3},{y}_{3}$ in G. Furthermore, not all even cycles in G would correspond to directed cycles in D. For instance, consider the even cycle ${x}_{1},{y}_{3},{x}_{3},{y}_{5},{x}_{5},{y}_{4},{x}_{4},{y}_{2},{x}_{1}$ in G. Neither collection of alternating edges of this cycle is a subset of the perfect matching ${M}_{D}$, and this even cycle does not correspond to any directed cycle in D (${z}_{1},{z}_{3},{z}_{5},{z}_{4},{z}_{2},{z}_{1}$ does not form a directed cycle in D).
As a corollary of Theorem 2, we derive an algebraic algorithm to enumerate all directed cycles in a given digraph. Note that, by the proof of Theorem 2, indecomposable even circuits of $G=G\left(D\right)$, in which a collection of alternating edges is a subset of ${M}_{D}$, are exactly the even cycles in G with the same property.
Corollary 4. Let D be a digraph and let $G=G\left(D\right)$ be its corresponding bipartite graph. Let ϕ be the presentation of the edge ideal $I=I\left(G\right)$ of G that results from its Taylor resolution. Let $\overline{B\left(\varphi \right)}$ be its reduced Jacobian dual. Then, the directed cycles of length t in D correspond exactly to the binomial $t\times t$ minors of $\overline{B\left(\varphi \right)}$ that satisfy the following conditions:
 1.
their columns are pairwise centerdistinct;
 2.
their monomials are squarefree and relatively prime; and
 3.
one of these monomials is the product of variables that correspond to a subset of the perfect matching ${M}_{D}$.
Proof. The assertion is a direct consequence of Theorems 1 and 2. □
We recall the famous Caccetta–Häggkvist conjecture for directed cycles in digraphs [
37].
Conjecture 4 (Caccetta–Häggkvist). Let D be a digraph on n vertices. Let $\ell \in \mathbb{N}$ and suppose that the outdegree of each vertex in D is at least $\frac{n}{\ell}$. Then, D contains a directed cycle of length at most ℓ.
As a consequence of Theorems 1 and 2, we are able to present a Jacobian dual matrix interpretation of the Caccetta–Häggkvist conjecture as follows. Note that every cycle is an indecomposable even circuit, and that, for a bipartite graph, the two notions coincide.
Conjecture 5. Let D be a digraph on n vertices such that the outdegree of each vertex in D is at least $\frac{n}{\ell}$. Let ϕ be the Taylor presentation matrix of $I\left(G\right(D\left)\right)$. Then, for some $q\le \ell $, ${I}_{q}\left(\overline{B\left(\varphi \right)}\right)$ contains a binomial with squarefree, relatively prime terms, one of which is a product of elements of ${M}_{D}$.
By Theorems 1 and 2, Conjectures 4 and 5 are equivalent. Conjecture 5 can also be rephrased using the language of Rees algebras by using Theorem 3.
Conjecture 6. Let D be a digraph on n vertices such that the outdegree of each vertex in D is at least $\frac{n}{\ell}$. If J is the defining ideal of the Rees algebra $R\left[I\right(G\left(D\right)\left)t\right]$, then, for some $q\le \ell $, J has a binomial generator of degree q that is squarefree and has relatively prime terms, one of which is a product of elements of ${M}_{D}$.
We conclude the paper with the observation that Conjecture 5 can be further translated into a problem in linear algebra. Notice that, if the outdegree of a vertex
${z}_{i}$ is at least
r, then there are at least
r paths of length 2 using the edge
${x}_{i}{y}_{i}$ with
${x}_{i}$ as the midpoint. The corresponding linear relations
${y}_{i}{T}_{{j}_{i}}{y}_{j}{T}_{i}$ give specific information about
r columns of
$\overline{B\left(\varphi \right)}$, each of which has an element from the perfect matching. If
D has
m vertices, this yields
$mr$ columns of
$\overline{B\left(\varphi \right)}$, each of which contains an element from the perfect matching, which form a fertile source of potential minors using submatrices of the form of Equation (
2) that would correspond to directed cycles in
D.