1 Introduction

The complete intersection property of the toric ideals of graphs was first studied by L. Doering and T. Gunston in [4]. In 1998, A. Simis proved that for a bipartite graph G for which the toric ideal I G is a complete intersection the number of chordless cycles of G is equal to the number mn+r, where m is the number of edges, n the number of vertices, and r the number of connected components of the graph G; see [19]. The following year, M. Katzman proved that for a bipartite graph G the corresponding ideal I G is a complete intersection if and only if any two chordless cycles have at most one edge in common; see [11]. Finally I. Gitler, E. Reyes, and R. Villarreal completely determined the form of the bipartite graphs for which the toric ideal I G is a complete intersection; see [5, 6]. They are the ring graphs. Given a graph H, we call a path P an H-path if P is non-trivial and meets H exactly in its ends. A graph G is a ring graph if each block of G which is not an edge or a vertex can be constructed from a cycle by successively adding H-paths of length at least two that meet graphs H already constructed in two adjacent vertices.

Theorem 1.1

(I. Gitler, E. Reyes, and R. Villarreal [6])

If G is a bipartite graph then I G is a complete intersection if and only if G is a ring graph.

In this article, we try to characterize complete intersection toric ideals of a general simple graph. Note that it is enough to answer the problem for a connected graph, since for the toric ideal of a graph G to be a complete intersection it is enough that for every connected component G′ of G the ideal I G is a complete intersection, and conversely. In this article, we will assume that all graphs considered are connected, except if stated otherwise.

The situation for a general graph is much more complicated than the case of a bipartite graph. For example, bipartite complete intersection graphs are always planar, see [6, 11], but this is not the general case as the following example shows, see also [11].

Let G be the graph with 11 edges and 8 vertices in Fig. 1. The height of the toric ideal I G is three, see [23], and I G is generated by the binomials e 1 e 5e 2 e 4,e 5 e 9e 6 e 8,e 3 e 9 e 10e 1 e 7 e 11, therefore it is a complete intersection. The graph G is a subdivision of K 3,3 and therefore it is not planar, see [12]. A subdivision of a graph G is any graph that can be obtained from G by replacing edges by paths.

Fig. 1
figure 1

A planar complete intersection graph

Note also that the ideal of a general graph is much more complicated than the ideal of a bipartite graph. The generators of the toric ideal of a bipartite graph correspond to chordless even cycles of the graph. While the generators of the general graph have a more complicated structure, see Theorems 2.1, 2.7. The fact that the generators of a complete intersection toric ideal are very simple is very interesting, all of them correspond to even cycles with at most one exemption, see Theorem 5.4. Actually, this is one of the properties that characterize complete intersection toric ideals of graphs, see Theorem 5.5.

In the second section, we review several notions from graph theory that will be useful in the sequel. We define the toric ideal of a graph and we recall several results about the elements of the Graver basis, the circuits and the elements of a minimal system of generators of the toric ideal of the graph. The third section contains basic results about complete intersections toric ideals of graphs. The fourth section contains one of the main results of the article that in a graph G for which the toric ideal I G is a complete intersection either all blocks are bipartite, or all blocks are bipartite except for one, or all blocks are bipartite except for two. In the case that there are exactly two non-bipartite blocks, they have a special position in the graph, the two blocks are contiguous. The fifth section contains the result that complete intersection toric ideals are circuit ideals and give a necessary and sufficient condition for a graph G to be a complete intersection. The final section proves that biconnected complete intersections graphs satisfy the odd cycle condition and gives a necessary and sufficient condition for the edge ring of a complete intersection graph to be normal.

In the same problem, independently from us, I. Bermejo, I. García-Marco and E. Reyes are working on providing combinatorial and algorithmic characterizations of general graphs such that their toric ideals are complete intersections; see [1].

2 Toric ideals of graphs

Let \(A=\{{\bf a}_{1},\ldots,{\bf a}_{m}\}\subseteq\mathbb{N}^{n}\) be a vector configuration in ℚn and \(\mathbb{N}A:=\{l_{1}{\bf a}_{1}+\cdots+l_{m}{\bf a}_{m} \ | \ l_{i} \in \mathbb{N}\}\) the corresponding affine semigroup. We grade the polynomial ring K[x 1,…,x m ] over any field K by the semigroup ℕA setting \(\deg_{A}(x_{i})={\bf a}_{i}\) for i=1,…,m. For \({\bf u}=(u_{1},\ldots,u_{m}) \in\mathbb{N}^{m}\), we define the A-degree of the monomial \({\bf x}^{{\bf u}}:=x_{1}^{u_{1}} \cdots x_{m}^{u_{m}}\) to be

$$\deg_{A}\bigl({\bf x}^{{\bf u}}\bigr):=u_1{\bf a}_1+\cdots+u_m{\bf a}_m \in\mathbb{N}A. $$

The toric ideal I A associated to A is the prime ideal generated by all the binomials \({\bf x}^{{\bf u}}- {\bf x}^{{\bf v}}\) such that \(\deg_{A}({\bf x}^{{\bf u}})=\deg_{A}({\bf x}^{{\bf v}})\), see [22]. For such binomials, we define \(\deg_{A}({\bf x}^{{\bf u}}- {\bf x}^{{\bf v}}):=\deg_{A}({\bf x}^{{\bf u}})\).

Let G be a simple finite connected graph on the vertex set V(G)={v 1,…,v n } and let E(G)={e 1,…,e m } be the set of edges of G. We denote by K[e 1,…,e m ] the polynomial ring in the m variables e 1,…,e m over a field K. We will associate each edge e={v i ,v j }∈E(G) with a e =v i +v j in the free abelian group generated by the vertices of G and let A G ={a e | eE(G)}. We denote by I G the toric ideal \(I_{A_{G}}\) in K[e 1,…,e m ] and by deg G the \(\deg_{A_{G}}\). By K[G] we denote the subalgebra of K[v 1,…,v n ] generated by all quadratic monomials v i v j such that e={v i ,v j }∈E(G). K[G] is an affine semigroup ring and it is called the edge ring of G.

A cut vertex (respectively, cut edge) is a vertex (respectively, edge) of the graph whose removal increases the number of connected components of the remaining subgraph. A graph is called biconnected if it is connected and does not contain a cut vertex. A block is a maximal biconnected subgraph of a given graph G.

A walk of length s connecting v 1V(G) and v s+1V(G) is a finite sequence of the form

$$w=\bigl(\{v_{1},v_{2}\},\{v_{2},v_{3}\},\ldots,\{v_{s},v_{s+1}\}\bigr) $$

with each e j ={v j ,v j+1}∈E(G), 1≤js. An even (respectively, odd) walk is a walk of even (respectively, odd) length. The walk w is called closed if v s+1=v 1. We call a walk \(w'=(e_{j_{1}},\ldots,e_{j_{t}})\) a subwalk of w if \(e_{j_{1}}\cdots e_{j_{t}}|e_{1}\cdots e_{s}\). A cycle is a closed walk

$$\bigl(\{v_{1},v_{2}\},\{v_{2},v_{3}\},\ldots,\{v_{s},v_{1}\}\bigr) $$

with v i v j , for every 1≤i<js. For convenience, by \(\bf{w}\) we denote the subgraph of G with vertices the vertices of the walk and edges the edges of the walk w. Given an even closed walk

$$w=(e_{i_1},\ldots,e_{i_{2q-1}},e_{i_{2q}}) $$

of the graph G, we denote by

$$E^+(w)=\prod_{k=1}^{q}e_{i_{2k-1}}={\bf e}^{w^+},\qquad E^-(w)=\prod _{k=1}^{q}e_{i_{2k}}={\bf e}^{w^-}, $$

and by B w the binomial

$$B_w=\prod_{k=1}^{q}e_{i_{2k-1}}-\prod_{k=1}^{q}e_{i_{2k}} $$

belonging to the toric ideal I G ; also by w +,w we denote the exponent vectors of the monomials E +(w),E (w) and by \({\bf w}^{+}, {\bf w}^{-}\) the sets \(\{ e_{i_{1}}, e_{i_{3}}, \dots, e_{i_{2q-1}}\}\), \(\{e_{i_{2}}, e_{i_{4}}, \dots, e_{i_{2q}}\}\), respectively. Actually, the toric ideal I G is generated by binomials of this form, see [23]. An even closed walk \(w=(e_{i_{1}},\ldots,e_{i_{2q-1}},e_{i_{2q}})\) is said to be primitive if there exists no even closed subwalk ξ of w of smaller length such that E +(ξ)|E +(w) and E (ξ)|E (w).

Every even primitive walk \(w=(e_{i_{1}},\ldots,e_{i_{2q}})\) partitions the set of edges of w in the two sets \(\textbf{w}^{+}=\{e_{i_{j}}\ | \ j\ \mathrm{odd}\}\) and \(\textbf{w}^{-}=\{e_{i_{j}}\ | \ j \ \mathrm{even}\}\), otherwise if \(e_{i_{k}}\in\textbf{w}^{+}\cap\textbf{w}^{-}\) then for the even closed subwalk \(\xi=(e_{i_{k}},e_{i_{k}})\) we have E +(ξ)|E +(w) and E (ξ)|E (w). The edges of \({\bf w}^{+}\) are called odd edges of the walk and those of \({\bf w}^{-}\) are called even. A sink of a block \({\mathcal{B}}\) of the graph \({\bf w}\) is a common vertex of two odd or two even edges of the walk w which belong to the block \({\mathcal{B}}\).

A necessary and sufficient characterization of the primitive walks of a graph, were given by E. Reyes, Ch. Tatakis and A. Thoma in [17, Theorem 3.2]:

Theorem 2.1

Let G a graph and w an even closed walk of G. The walk w is primitive if and only if

  1. (i)

    Every block of \(\bf{w}\) is a cycle or a cut edge,

  2. (ii)

    Every multiple edge of the walk w is a double edge of the walk and a cut edge of \(\bf{w}\),

  3. (iii)

    Every cut vertex of \(\bf{w}\) belongs to exactly two blocks and it is a sink of both.

The following corollary was given by E. Reyes, Ch. Tatakis, and A. Thoma in [17, Corollary 3.3] and it describes the underlying graph of a primitive walk, see Fig. 2.

Fig. 2
figure 2

A primitive walk

Corollary 2.2

Let G be a graph and let W be a connected subgraph of G. The subgraph W is the graph \({\bf w}\) of a primitive walk w if and only if

  1. (i)

    W is an even cycle or

  2. (ii)

    W is not biconnected and

    1. (a)

      Every block of W is a cycle or a cut edge and

    2. (b)

      Every cut vertex of W belongs to exactly two blocks and separates the graph in two parts, the total number of edges of the cyclic blocks in each part is odd.

In this case, the walk w passes through every edge of the cyclic blocks exactly once and from the cut edges twice.

A walk w is primitive if and only if the binomial B w is primitive. The set of primitive binomials form the Graver basis of the toric ideal I G . The Graver basis is important to us because every element of a minimal generating set of I G belongs to the Graver basis of I G , see [22]. We call a strongly primitive walk a primitive walk that does not have two sinks with distance one in any cyclic block, or equivalently, that does not have two adjacent cut vertices in any cyclic block. For example, the walk in Fig. 1 is primitive but it is not strongly primitive, look, for example, at the cycle with six edges. We say that a binomial is a minimal binomial if it belongs to at least one minimal system of generators of I G .

Let H be a subset of V(G) and G H be the induced graph of H in G, which is the graph with vertices the elements of the set H and edges the set of edges of G where both vertices belong to H. For a given subgraph F of G, an edge f of the graph G is called a chord of the subgraph F if the vertices of the edge f belong to V(F) and fE(F). In other words, an edge is called a chord of the subgraph F if it belongs to E(G V(F)) but not in E(F). A subgraph F is called chordless if F=G V(F). For convenience, by G w we denote the induced graph \(G_{V({\bf w})}\), where w is an even closed walk.

Let w be an even closed walk ({v 1,v 2},{v 2,v 3},…,{v 2q ,v 1}) and f={v i ,v j } a chord of w. Then f breaks w into two walks:

$$w_{1}=(e_{1},\ldots,e_{i-1}, f, e_{j},\ldots,e_{2q}) $$

and

$$w_{2}=(e_{i},\ldots,e_{j-1},f), $$

where e s ={v s ,v s+1}, 1≤s≤2q and e 2q ={v 2q ,v 1}. The two walks are both even or both odd. A chord e={v k ,v l } is called a bridge of a primitive walk w if there exist two different blocks \({\mathcal{B}}_{1},{\mathcal{B}}_{2}\) of \(\bf {w}\) such that \(v_{k}\in{\mathcal{B}}_{1}\) and \(v_{l}\in{\mathcal{B}}_{2}\). A chord is called even (respectively, odd) if it is not a bridge and breaks the walk in two even walks (respectively, odd). Thus we partition the set of chords of a primitive even walk in three parts: bridges, even chords, and odd chords.

Definition 2.3

Let \(w=(\{v_{i_{1}},v_{i_{2}}\}, \{v_{i_{2}},v_{i_{3}}\},\dots, \{v_{i_{2q}},v_{i_{1}}\})\) be a primitive walk. Let \(f=\{v_{i_{s}},v_{i_{j}}\}\) and \(f'=\{v_{i_{s'}},v_{i_{j'}}\}\) be two odd chords (that means not bridges and js,j′−s′ are even) with 1≤s<j≤2q and 1≤s′<j′≤2q. We say that f and f′ cross effectively in w if s′−s is odd (then necessarily js′,j′−j,j′−s are odd) and either s<s′<j<j′ or s′<s<j′<j.

Definition 2.4

We call an F 4 of the walk w a cycle (e,f,e′,f′) of length four which consists of two edges e,e′ of the walk w both odd or both even, and two odd chords f and f′ which cross effectively in w.

Definition 2.5

Let w be a primitive walk and f,f′ be two odd chords. We say that f,f′ cross strongly effectively in w if they cross effectively and they do not form an F 4 in w.

An F 4, (e 1,f 1,e 2,f 2), separates the vertices of \({\bf w}\) into two parts, \(V({\bf w}_{1}), V({\bf w}_{2})\), since both edges e 1,e 2 of the F 4 belong to the same block of w=(w 1,e 1,w 2,e 2).

Definition 2.6

We say that an odd chord f of a primitive walk w=(w 1,e 1,w 2,e 2) crosses an F 4, (e 1,f 1,e 2,f 2), if one of the vertices of f is in \(V({\bf w}_{1})\), the other in \(V({\bf w}_{2})\), and f is different from f 1,f 2.

The next theorem by E. Reyes, Ch. Tatakis, and A. Thoma in [17, Theorem 4.13] gives a necessary and sufficient characterization of minimal binomials of a toric ideal of a graph. This is the main theorem that made the results of this paper possible.

Theorem 2.7

Let w be an even closed walk. B w is a minimal binomial if and only if

  1. (i)

    w is strongly primitive,

  2. (ii)

    All the chords of w are odd and there are not two of them which cross strongly effectively and

  3. (iii)

    No odd chord crosses an F 4 of the walk w.

The support of a monomial \(x^{\bf{u}}\) of K[x 1,…,x m ] is \(\mathrm{supp}(x^{\bf{u}}):=\{i\ | \ x_{i}\ \mbox{ divides}\ x^{\bf{u}}\}\) and the support of a binomial \(B=x^{\bf{u}}-x^{\bf{v}}\) is \(\mathrm{supp}(B):=\mathrm{supp}(x^{\bf{u}})\cup \mathrm{supp}(x^{\bf{v}})\). An irreducible binomial B belonging to I A is called a circuit of I A if there is no binomial B′∈I A such that supp(B′)⫋supp(B). A necessary and sufficient characterization of circuits for toric ideals of graphs was given by R. Villarreal in [23, Proposition 4.2]:

Theorem 2.8

Let G be a graph. The binomial BI G is circuit if and only if B=B w , where w is:

  1. (i)

    An even cycle, or

  2. (ii)

    Two odd cycles intersecting in exactly one vertex, or

  3. (iii)

    Two vertex disjoint odd cycles joined by a path.

3 Complete intersection graphs

The graph G is called bipartite if it does not contain an odd cycle. The height of I G is equal to h=mn+1 if G is a bipartite graph or h=mn if G is a non-bipartite graph, where G is a connected graph, m is the number of edges of G, and n is the number of its vertices, see [23]. The toric ideal of G is called a complete intersection if it can be generated by h binomials. We say that a graph G is a complete intersection if the ideal I G is a complete intersection.

The problem of determining complete intersection toric ideals has a long history starting with J. Herzog in 1970 [10] and was finally solved by K. Fisher, W. Morris, and J. Shapiro in 1997 [7]. For the history of this problem, see the introduction of [14].

The next theorem says that the complete intersection property of a graph is a hereditary property, in the sense that it holds also for all induced subgraphs.

Theorem 3.1

The graph G is a complete intersection if and only if the graph G H is a complete intersection for every HV(G).

Proof

Let \(B_{w_{1}},\ldots,B_{w_{s}}\) be a minimal system of generators of \(I_{G_{H}}\), for some even closed walks w i of G, 1≤is. A minimal generator B w of \(I_{G_{H}}\) is always a minimal generator of I G since the property of being minimal generator depends only on the induced graph G w of w, see Theorem 2.7. Note that for a walk w of G H , the induced graph G w is the same in G H as in G. Therefore, we can extend \(B_{w_{1}},\ldots,B_{w_{s}}\) to a minimal system of generators \(B_{w_{1}},B_{w_{2}},\ldots,B_{w_{h}}\) of I G , sh. The toric ideal I G is complete intersection, therefore \(B_{w_{1}},\ldots,B_{w_{h}}\) is a regular sequence. Since the ideal I G in K[e 1,…,e m ] is homogeneous and none of the variables is a zero divisor in the edge ring K[G]=K[e 1,…,e m ]/I G , the sequence \(B_{w_{1}},\ldots,B_{w_{s}}\) is regular, and therefore \(I_{G_{H}}\) is a complete intersection toric ideal, see [18].

The converse is obvious since for H=V(G) we have G=G H . □

The next proposition gives a very useful property of complete intersection toric ideals that will play a crucial role in the proofs of the theorems in the next sections.

Proposition 3.2

If G is a complete intersection and \(B_{w_{1}},\ldots,B_{w_{s}}\) is a minimal set of generators of the ideal I G then there are no two walks w i , w j , \(i\not=j\) such that \({\bf w}_{i}^{+}\cap{\bf w}_{j}^{+}\not= \emptyset\) and \({\bf w}_{i}^{-}\cap{\bf w}_{j}^{-}\not= \emptyset\), or \({\bf w}_{i}^{+}\cap{\bf w}_{j}^{-}\not= \emptyset\) and \({\bf w}_{i}^{-}\cap {\bf w}_{j}^{+}\not= \emptyset\).

Proof

Let \(B_{w_{1}}={\bf e}^{w_{1}^{+}}-{\bf e}^{w_{1}^{-}},\ldots,B_{w_{s}}={\bf e}^{w_{s}^{+}}-{\bf e}^{w_{s}^{-}}\) be a minimal set of generators of the complete intersection toric ideal I G . Then the matrix M with rows \(w_{i}^{+}-w_{i}^{-}\) is mixed dominating, see Corollary 2.10 [8]. A matrix is called mixed if its every row contains both a positive and a negative entry and dominating if it does not contain a square mixed submatrix. Suppose that there exist \(B_{w_{1}},\ldots,B_{w_{s}}\), a minimal set of generators, and two walks w i , w j , \(i\not=j\) such that \({\bf w}_{i}^{+}\cap{\bf w}_{j}^{+}\not= \emptyset\) and \({\bf w}_{i}^{-}\cap{\bf w}_{j}^{-}\not= \emptyset\). Let \(e_{k}\in{\bf w}_{i}^{+}\cap{\bf w}_{j}^{+}\) and \(e_{l}\in{\bf w}_{i}^{-}\cap{\bf w}_{j}^{-}\). Then the 2×2 square submatrix taken from the i,j rows and k,l columns is mixed, contradicting the fact that M is dominating. The proof of the other part is similar. □

It follows from Proposition 3.2 that if two edges are consecutive edges in two even closed walks w 1 and w 2 in a complete intersection graph then both \(B_{w_{1}}\), \(B_{w_{2}}\) cannot belong to the same minimal system of generators of I G . Also note that you cannot have in a minimal system of generators two circuits with two odd cycles and one of the cycles being the same in both, since any cycle contains at least three edges, and therefore there are at least two consecutive edges in common. For toric ideals of graphs, Theorem 2.7 determines the form of a minimal binomial. Two minimal binomials sometimes belong to a minimal system of generators of the toric ideal, but for certain minimal binomials it is impossible to find a minimal system of generators that contains both of them, see [3]. For a toric ideal I A , if two minimal binomials have different A-degrees then there exists a minimal system of generators for I A that contains both of them. But if they have the same A-degree, sometimes there exists a minimal system of generators for I A that contains both of them and sometimes not; for more details, look at [3]. For toric ideals of graphs, the situation is simpler. Let B w , B w be two minimal generators of I G . Then there exist a minimal system of generators for I G that contains both of them if and only if w and w′ are not F 4-equivalent, see [17].

Definition 3.3

Two primitive walks w,w′ differ by an F 4, ξ=(e 1,f 1,e 2,f 2), if w=(w 1,e 1,w 2,e 2) and w′=(w 1,f 1,−w 2,f 2), where both w 1,w 2 are odd walks. Two primitive walks w,w′ are F 4-equivalent if either w=w′ or there exists a series of walks w 1=w,w 2,…,w n−1,w n =w′ such that w i and w i+1 differ by an F 4, where 1≤in−1.

For more information about minimal system of generators of toric ideals of graphs, see [17].

4 On the blocks of a complete intersection graph

Theorem 4.2 is one of the main results of the article and proves that if a complete intersection graph has n blocks then at least n−2 of them are bipartite. In the case that there are two non-bipartite blocks, they have to have a special position in the graph, namely, they have to be contiguous.

Definition 4.1

Two blocks of a graph G are called contiguous if they have a common cut vertex or there is a path from the one to the other in which each edge of the path belongs to a different block.

Let B(G) be the block tree of G, the bipartite graph with bipartition \((\mathbb{B},\mathbb{S})\) where \(\mathbb{B}\) is the set of blocks of G and \(\mathbb{S}\) is the set of cut vertices of G, \(\{{\mathcal{B}}, v\}\) is an edge if and only if \(v\in{\mathcal{B}}\). The leaves of the block tree are always blocks and are called end blocks. Let \({\mathcal{B}}_{k}, {\mathcal{B}}_{i}, {\mathcal{B}}_{l}\) be blocks of a graph G. We call the block \({\mathcal{B}}_{i}\) an internal block of \({\mathcal{B}}_{k},{\mathcal{B}}_{l}\), if \({\mathcal{B}}_{i}\) is an internal vertex in the unique path defined by \({\mathcal{B}}_{k},{\mathcal{B}}_{l}\) in the tree B(G). Every path from \({\mathcal{B}}_{k}\) to \({\mathcal{B}}_{l}\) passes from every internal block of \({\mathcal{B}}_{k},{\mathcal{B}}_{l}\) and has as vertices at least the cut vertices which are vertices in the path \(({\mathcal{B}}_{k},\ldots,{\mathcal{B}}_{l})\) in B(G). In the case that \({\mathcal{B}}_{i}\) is an internal block of \({\mathcal{B}}_{k}\), \({\mathcal{B}}_{l}\) we denote by y i,k and y i,l the cut vertices of \({\mathcal{B}}_{i}\) which are also vertices of the unique path \(({\mathcal{B}}_{k},\ldots,{\mathcal{B}}_{l})\) in the block-tree B(G). It follows from the definition and the above remarks that if the blocks \({\mathcal{B}}_{k}\), \({\mathcal{B}}_{l}\) are contiguous then {y i,k ,y i,l } is an edge of the graph G. Even more, there is a unique chordless path between two contiguous blocks \({\mathcal{B}}_{k}\), \({\mathcal{B}}_{l}\), where every edge is in the form {y i,k ,y i,l }.

Theorem 4.2

Let G be a graph. If G is complete intersection then either

  1. (i)

    All blocks of G are bipartite, or

  2. (ii)

    All blocks are bipartite except one, or

  3. (iii)

    All blocks are bipartite except two which are contiguous.

Proof

Let G be a complete intersection graph and let \({\mathcal{B}}_{1},\ldots,{\mathcal{B}}_{t}\) be its blocks. We assume that G has three or more non-bipartite blocks and let three of them be \({\mathcal{B}}_{m},{\mathcal{B}}_{k},{\mathcal{B}}_{l}\). At least one of \({\mathcal{B}}_{m},{\mathcal{B}}_{k},{\mathcal{B}}_{l}\) is not an internal block of the other two, let it be \({\mathcal{B}}_{m}\). We denote by y i,j the cut vertex of \({\mathcal{B}}_{i}\) which is the second vertex of the unique path \(({\mathcal{B}}_{i},\ldots,{\mathcal{B}}_{j})\) in the block tree B(G), where i,j∈{m,k,l}. The block \({\mathcal{B}}_{i}\), i∈{m,k,l}, is non-bipartite, therefore it contains at least one odd cycle, but it is biconnected, therefore through every point of it passes an odd cycle. We denote by c i,j an odd cycle of the block \({\mathcal{B}}_{i}\) which contains the vertex y i,j and with the smallest number of edges. Let w m,k =(c m,k ,p m,k ,c k,m ,−p m,k ), w m,l =(c m,l ,p m,l ,c l,m ,−p m,l ), where p m,k ,p m,l are chordless paths from y m,k to y k,m and from y m,l to y l,m , respectively, and we can choose c m,k =c m,l since \({\mathcal{B}}_{m}\) is not an internal block of the other two. Note that whenever there is a path from a vertex to another one then there is a chordless path between these two vertices.

We claim that the binomials \(B_{w_{m,k}}\) and \(B_{w_{m,l}}\) are minimal. First, \(B_{w_{m,k}}\) is a circuit, see Theorem 2.8, and therefore w m,k is primitive, actually strongly primitive, see Theorem 2.7. Note that w m,k has no bridges, since bridges are chords of the walk w m,k that have their vertices in different blocks of \({\bf w}_{m,k}\) which is impossible since (a) p m,k is chordless, thus there is no bridge from the blocks of the path to themselves, (b) y m,k , y k,m are cut vertices, thus there is no bridge from the cycles to the path, and (c) the odd cycles are of minimum length, therefore there is no chord of the cycles incident to y m,k or y k,m . Also w m,k has no even chords since c m,k , c k,m are odd cycles of minimum length. So all the chords of w m,k are odd. Note that the odd chords of w m,k are chords of either the cycle c m,k or c k,m . There are no two of them which cross effectively, except if they form an F 4, otherwise there will be an other odd cycle with strictly smaller number of edges than either c m,k or c k,m which passes from y m,k or y k,m . Also no odd chord crosses an F 4 of w m,k , since an odd chord that crosses an F 4 of w m,k is an even chord for an F 4-equivalent walk of w m,k , which contradicts the minimallity of one of the cycles c m,k or c k,m . Therefore, by Theorem 2.7, \(B_{w_{m,k}}\) is minimal. Similarly for the binomial \(B_{w_{m,l}}\). Note that \(\deg _{G}(B_{w_{m,k}})\not=\deg_{G}(B_{w_{m,l}})\) thus they may belong to the same minimal system of generators of I G . This contradicts Proposition 3.2 since the cycle c m,k =c m,l is contained in both walks. So the graph G has at most two non-bipartite blocks.

Suppose that we are in the case that G has exactly two non-bipartite blocks and let them be \({\mathcal{B}}_{1}\) and \({\mathcal{B}}_{2}\). We will prove that the blocks \({\mathcal{B}}_{1}\) and \({\mathcal{B}}_{2}\) are contiguous. Suppose not, then there exists at least one block \({\mathcal{B}}_{t}\) such that every path from \({\mathcal{B}}_{1}\) to \({\mathcal{B}}_{2}\) has at least two edges in \({\mathcal{B}}_{t}\), see the remarks after the definition of contiguity. Let y t,1 and y t,2 be the cut vertices of \({\mathcal{B}}_{t}\) which are also vertices of the unique path \(({\mathcal{B}}_{1},\ldots,{\mathcal{B}}_{2})\) in the block-tree B(G). Since y t,1 and y t,2 belong to the same block \({\mathcal{B}}_{t}\), there exist at least two internally disjoint paths of length at least two connecting them. Note that {y t,1,y t,2} is not an edge of G, thus there are two different chordless paths from y t,1 to y t,2. Thus there exist at least two different chordless paths from y 1,2 and y 2,1. Therefore, by choosing the odd cycles c 1,2 and c 2,1 as in the above construction, and the two chordless paths p 1,p 2 from y 1,2 and y 2,1 we get two even walks w 1=(c 1,2,p 1,c 2,1,−p 1), w 2=(c 1,2,p 2,c 2,1,−p 2). As before, there are no bridges in both w 1,w 2 and since all the chords of c 1,2 and c 2,1 are odd, there are no two of them which cross effectively (except if they form an F 4) and no odd chord crosses an F 4 of w m,k , each one of those paths will give a minimal generator of I G . Note that \(\deg_{G}(B_{w_{1}})\not=\deg_{G}(B_{w_{2}})\) thus they may belong to the same minimal system of generators of I G . This contradicts Proposition 3.2 since the cycles c 1,2 and c 2,1 are contained in both walks. So \({\mathcal{B}}_{1}\) and \({\mathcal{B}}_{2}\) are contiguous blocks. □

5 Circuit ideals and complete intersections

The first theorem of this section states an interesting property of toric ideals of graphs: Complete intersection toric ideals of graphs are circuit ideals. Note that complete intersection toric ideals usually do not have this property. For more information on circuit ideals, see the article [2] by T. Bogart, A.N. Jensen, and R.R. Thomas; and for toric ideals of homogeneous normal configurations generated by circuits, see the article [13] by J. Martinez-Bernal and R.H. Villarreal. The configurations of vectors arising from graphs are always homogeneous but not necessarily normal, even if the graphs are complete intersections. Thus these results cannot be applied in the general case of graphs. In the next section, we study normality and we determine all complete intersection graphs for which their corresponding configurations of vectors are normal, i.e., ℕA=ℤA∩ℝ+ A.

Theorem 5.1

Let G be a graph. If G is a complete intersection then every minimal generator of I G is a circuit.

Proof

Suppose that I G is a complete intersection toric ideal that has a minimal generator B w which is not a circuit. Since the binomial B w is minimal it is also primitive. Therefore, all of the blocks of \({\bf w}\) are cycles or cut edges, see Theorem 2.7. The end blocks of \({\bf w}\) are always cyclic blocks and if there is more than one end block they are all odd cycles, see Corollary 2.2. Since B w is not a circuit it has at least three cyclic blocks from which at least two are end blocks and therefore odd, see Theorems 2.7 and 2.8, otherwise, if it has only one cyclic block then there is only one end block in \({\bf w}\) and therefore \({\bf w}\) is an even cycle, and if it has exactly two cyclic blocks, they should be end blocks and the cut edges should be internal blocks, thus in all cases \({\bf w}\) is a circuit, see Theorem 2.8.

The graph G is a complete intersection; therefore, the induced graph G w is a complete intersection, by Theorem 3.1, where G w is the induced graph of \({\bf w}\) in G. Note that the walk w has no bridges, since B w is a minimal generator, see Theorem 2.7; therefore, there is a one-to-one correspondence between the blocks of \({\bf w}\) and the blocks of G w . Cut edges of \({\bf w}\) are cut edges of G w , but cyclic blocks of \({\bf w}\) may have chords in G w . At least two of the blocks are non-bipartite since they have an odd cycle. Therefore, by Theorem 4.2, there are exactly two. There are at least two end blocks of \({\bf w}\), and thus they are odd cycles. Therefore, the two non-bipartite blocks are the only end blocks of the block graph of G w , which means that the block tree B(G w ) is a path, see Corollary 2.2. Let \({\mathcal{B}}_{1}\), \({\mathcal{B}}_{2}\) be the two odd cyclic blocks of \({\bf w}\) and \({\mathcal{B}}_{3}\) be one of the other cyclic blocks, then \({\mathcal{B}}_{3}\) will be an internal block of \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\). From Theorem 4.2, the two blocks \({\mathcal{B}}_{1}\), \({\mathcal{B}}_{2}\) are contiguous; therefore, there will be an edge of the block \({\mathcal{B}}_{3}\) at the path which connects the two odd cycles \({\mathcal{B}}_{1}\), \({\mathcal{B}}_{2}\) of w. If the edge belongs to the walk w then w is not strongly primitive, and if the edge does not belong to w then it is a bridge of w since its vertices are cut vertices of \({\bf w}\) and thus belong to two different blocks of \({\bf w}\). In both cases, Theorem 2.7 implies that B w is not a minimal generator, a contradiction. Therefore, \({\bf w}\) has at most two cyclic blocks and thus B w is a circuit, see Theorem 2.1 and Theorem 2.8. □

The next proposition will be useful in the proof of Theorem 5.3.

Proposition 5.2

Let G be a complete intersection graph and let B w be a minimal generator of I G . If w is not an even cycle then w is chordless.

Proof

From Theorem 5.1, the walk w consists of two odd edge-disjoint cycles joint at vertex or with a path, see Theorem 2.8. Thus w is of the form (c 1,p,c 2,−p), where c 1,c 2 are odd cycles y 1,y 2 are points of c 1 and c 2, respectively, and p is a path from y 1 to y 2; and it is possible that y 1=y 2 and p is empty. Since the binomial B w is minimal, the walk w has no even chords and no bridges, see Theorem 2.7. Suppose that the walk w had an odd chord e={a,b}, then from the definition of an odd chord, both vertices belong to the same cycle. Without loss of generality, we can suppose that both vertices a,b belong to the cycle c 1. Then c 1=(c 11,c 12,c 13), where c 11,c 12,c 13 are nonempty paths from y 1 to a, a to b and b to y 1, respectively. Among all possible such odd chords e, we choose the vertex a in such a way that the length of c 11 is as small as possible. If there are more than one odd chord with one vertex a then we choose b such that c 12 is as small as possible. By the choice of a, the walk w 1=(c 12,{b,a},−c 11,p,c 2,−p,c 11) has no bridge from c 12 to c 11. By the choice of b, there is no bridge from c 12 to the vertex a. Note that for w 1 it is not possible to have another bridge since w has no bridges. Any chord of the odd cycle (c 12,e) is also a chord of w. B w is minimal generator of I G ; therefore, if there exist such chords then all of them are odd chords of w and no two of them cross strongly effectively and no odd chord crosses an F 4 of the walk w, see Theorem 2.7. Therefore, also \(B_{w_{1}}\) is minimal. Note that \(\deg_{G}(B_{w})\not=\deg_{G}(B_{w_{1}})\) thus they may belong to the same minimal system of generators of I G . This is a contradiction to Proposition 3.2 since the cycle c 2 is contained in both walks. Therefore, w has no chord. □

Theorem 5.3

Let G be a biconnected complete intersection graph G. All minimal generators of I G are in the form B w where w is an even cycle.

Proof

Theorem 5.1 implies that all generators are circuits, thus to prove the theorem we will suppose that there is an even closed walk w=(c 1,p,c 2,−p) of G such that B w is a minimal generator of I G and we will arrive to a contradiction, where c 1,c 2 are odd cycles of G, p=(v 1,…,v l ) a path between them denoted by its vertices, V(c 1)∩V(p)={v 1}, V(c 2)∩V(p)={v l }, and V(c 1)∩V(c 2)=∅, except in the case that the path p is just a vertex, {v 1}, and then V(c 1)∩V(c 2)={v 1}.

We claim that there is a path from c 1 to c 2 which is vertex disjoint from p. Suppose not. Then, since v 1 is not a cut vertex of G there must be at least one H-path from V(c 1)−{v 1} to {v 2,…,v l }, where H is the graph \({\bf c}_{1}\cup{\bf c}_{2}\cup{\bf p}\). Consider among all such H-paths those that for their end point v k the k is maximum, 2≤kl. Among those let ζ be one of minimal length. Let z be the even closed walk (c 1,ζ,{v k ,v k+1},…,{v l−1,v l },c 2,{v l ,v l−1},….{v k+1,v k },−ζ). Then \(\deg_{G}(B_{z})\not=\deg_{G}(B_{w})\), except in the case that ζ consists of only one edge and k=2. But then this edge is a bridge of the walk w, contradicting the minimality of B w , see Theorem 2.7. Then the binomial B z cannot be a minimal generator since w and z share the cycle c 2. Therefore, \({\bf z}\) must have at least a chord. But w is chordless, see Proposition 5.2. There is no chord from c 2 to ζ, otherwise there is a path from c 1 to c 2 which is vertex disjoint from p. There is no chord from {v k ,v k+1…,v l−1,v l } to ζ since the existence of a chord like that contradicts the choice of k. The only choice left for a chord is from the cycle c 1 to ζ. And since ζ is a path of minimal length any chord should be from c 1 to the second vertex of the path ζ, say x. Look at the induced graph of \({\bf c}_{1}\cup\{x\}\). Since c 1 is chordless any chord of \({\bf c}_{1}\cup\{x\}\) is from c 1 to x. There must be at least two chords of \({\bf c}_{1}\cup\{x\}\), since also the first edge of ζ is a chord of \({\bf c}_{1}\cup\{x\}\). Look at the chordless cycles passing through x, in the induced graph of \({\bf c}_{1}\cup\{x\}\). At least one of the cycles is odd since c 1 is odd and each one consists of edges of c 1 and two chords passing through x. Let o be an odd such cycle, then the even closed walk z′=(o 1,ζ′,{v k ,v k+1},…,{v l−1,v l },c 2,{v l ,v l−1},….{v k+1,v k },−ζ′) has no chords and bridges, where ζ′ is the subpath of ζ from x to v k . Therefore, by Theorem 2.7, B z is a minimal generator of I G . But this is not possible since \(\deg_{G}(B_{w})\not=\deg_{G}(B_{z'})\) and z′ has a common cycle, the c 2, with w.

Therefore, there is a path from c 1 to c 2 which is vertex disjoint from p. Let q=(x 1,y 1,…,y 2,x 2) be one of minimal length, where the vertex x 1c 1 and the vertex x 2c 2. Note that the length of q is greater than one, since otherwise it will be just an edge which will be a bridge of w and then B w will not be a minimal generator of I G . Note also that it may be y 1=y 2. Look at the graph induced by the graph \({\bf w}\cup{\bf{q}}\). By Proposition 5.2, w has no chords and the path q has minimal length. Therefore, the chords of \({\bf w}\cup{\bf{q}}\) are either edges from the cycle c 1 to y 1, or from the cycle c 2 to y 2 and from p to q except to the vertices x 1,x 2.

We claim that there are chords from the cycle c 1 to y 1. Suppose not. Let c 11 be the path of greater length from v 1 to x 1 on the cycle c 1 and c 12 be the path of smaller length from v 1 to x 1 on the circle c 1. Note that the cycle c 1 is odd and also the length of c 11 is greater than one. Denote by c 21 the path from x 2 to v 2 such that the cycle w′=(c 11,q,c 21,−p) is even. There exists such a path since the cycle c 2 is odd. Consider c to be the smallest even cycle of the form (c 11,c′) and the edges of it being edges or chords of w′. Note that there exists such a cycle since w′ is of that form. Note that c is a cycle; therefore, it has no bridges and it is strongly primitive. Also from the minimality of the length of c among even cycles of the form (c 11,c′), c has no even chord and no two odd chords which cross strongly effectively and no odd chord that crosses an F 4 of c. Otherwise the proofs of Propositions 4.8 and 4.12 of [17] show that there exist two smaller even cycles and one of them is of the form (c 11,c″) since there are no chords from c 11. Then B c is a minimal generator of I G . Note that \(\deg_{G}(B_{w})\not =\deg_{G}(B_{c})\) thus they may belong to the same minimal system of generators of I G . This contradicts Proposition 3.2 since the edges of c 11 are contained in both walks and the length of c 11 is greater than one.

Therefore, there exist chords from the cycle c 1 to y 1 and similarly from the cycle c 2 to y 2. Let \((u_{1,1}, u_{1,2},\dots, u_{1,s_{1}})\) be the cycle c 1 denoted by its vertices, where u 1,1=v 1. We consider all chords from the cycle c 1 to y 1 together with the edge {x 1,y 1} and denote them by \(e_{1}=\{y_{1}, u_{1,i_{1}}\}, \dots, e_{t_{1}}=\{y_{1}, u_{1,i_{t_{1}}}\}\), where \(i_{1}<\cdots<\nobreak i_{t_{1}}\). Then the cycles \(c_{1,j}=(y_{1}, u_{1,i_{j}}, u_{1,i_{j}+1},\dots, u_{1,i_{j+1}})\), for 1≤jt 1−1, and \(c_{1,t_{1}}=(y_{1}, u_{1,i_{t_{1}}}, u_{1,i_{t_{1}}+1},\dots, u_{1,s_{1}}, u_{1,1},\dots, u_{1,i_{1}})\) are chordless. If one of them were even then, since it does not have any chords, the corresponding binomial would be a minimal generator of I G , see Theorem 2.7. But it cannot have two consecutive edges which are in \({\bf w}^{+}\) or \({\bf w}^{-}\); therefore, the only choice for the cycle is \((y_{1},u_{1,s_{1}},u_{1,1}, u_{1,2})\).

Similarly, there cannot be two consecutive odd cycles c 1,j ,c 1,j+1 since then the cycle \(c=(y_{1}, u_{1,i_{j}}, u_{1,i_{j}+1},\dots, u_{1,i_{j+1}}, u_{1,i_{j+1}+1}, u_{1,i_{j+2}} )\) is even with only one odd chord; therefore, the corresponding binomial is a minimal generator, see Theorem 2.7. But c cannot have two consecutive edges which are in \({\bf w}^{+}\) or \({\bf w}^{-}\); therefore, the only choice for the resulting cycle is \((y_{1},u_{1,s_{1}},u_{1,1}, u_{1,2})\), and the two original cycles where (y 1,u 1,1,u 1,2) and \((y_{1},u_{1,s_{1}},u_{1,1})\). Since the cycle c 1 is odd and each cycle c 1,j consists of a part of c 1 and two new edges, the number of odd cycles c 1,j must be odd. And since among these cycles at most one can be even, then the number of odd cycles cannot be greater than or equal to three since then you can find two consecutive cycles different from (y 1,u 1,1,u 1,2) and \((y_{1},u_{1,s_{1}},u_{1,1})\). But then there is only one choice left, one cycle is even, the \((y_{1},u_{1,s_{1}},u_{1,1}, u_{1,2})\), and one odd, the \((y_{1}, u_{1,2}, u_{1,3},\dots, u_{1,s_{1}})\).

A similar statement is also true for y 2 and the cycle c 2. The even closed walk \(z=(y_{1}, u_{1,2}, u_{1,3},\dots, u_{1,s_{1}}, y_{1},\xi ', y_{2}, u_{2,2}, u_{2,3},\dots, u_{2,s_{2}}, y_{2},-\xi',y_{1})\) has no chords or bridges; therefore, B z is a minimal generator of I G , see Theorem 2.7, where ξ′ is the subpath of q from y 1 to y 2. But then from Proposition 3.2 and that fact that B w is a minimal generator we conclude that s 1=3=s 2.

Look at the graph \({\bf z}\cup{\bf w}\), the only chords of the graph can be from the path p to the path ξ′. Let e={a,b} be the nearest chord to the vertex u 1,1, if there exists one, otherwise call e the chord {a=u 2,1,b=u 2,3}. By the choice of the edge e, the cycle o=(u 1,1,…,a,b,…,y 1,u 1,3,u 1,2) has only two chords, {u 1,2,y 1} and {u 1,1,u 1,3}.

There are two cases. The first case: the cycle o=(u 1,1,…,a,b,…,y 1,u 1,3,u 1,2) is even. In this case, the two chords {u 1,2,y 1}, {u 1,1,u 1,3} form an F 4 of the even closed walk o. Then B o is a minimal generator of I G , see Theorem 2.7. But this is impossible since the minimal generators B w , B o have two consecutive edges in common, {u 1,3,u 1,2} and {u 1,2,u 1,1}, and \(\deg _{G}(B_{w})\not=\deg_{G}(B_{o})\), see Proposition 3.2.

The second case: the cycle o is odd, then the cycles o 1=(u 1,1,…,a,b,…,y 1,u 1,2), o 2=(u 1,1,…,a,b,…,y 1,u 1,3) are both chordless and even. But then the \(B_{o_{1}}, B_{o_{2}}\) are minimal generators of I G . But this contradicts Proposition 3.2 since the two cycles have all edges in common except for two and \(\deg_{G}(B_{o_{1}})\not=\deg _{G}(B_{o_{2}})\).

We conclude that all minimal generators of I G are of the form B w where w is an even cycle. □

Theorem 5.4

Let G be a complete intersection graph. All minimal generators, except for at most one, of I G are of the form B w where w is an even cycle. The possible exceptional generator is a circuit whose two odd cycles belong to two different contiguous blocks.

Proof

In the case that all blocks of G are bipartite or all except one, there is no generator of the form B w where w=(c 1,p,c 2,−p) with c 1,c 2 odd cycles, see Theorem 5.3. In the case that G has two contiguous non-bipartite blocks, say \({\mathcal{B}}_{1}\), \({\mathcal{B}}_{2}\), according to the proof of Theorem 4.2, there is one generator of the form B w , where w=(c 1,p,c 2,−p) is an even closed walk, where c 1, c 2 are odd chordless cycles of \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\) that are passing through y 1,2 and y 2,1, respectively, and p is the unique chordless path between them. Suppose that there is another generator of the form B w where w′ is not an even cycle. Then from Theorem 5.3, \({\bf w}'\) is not contained in the blocks \({\mathcal{B}}_{1}\) or \({\mathcal{B}}_{2}\). So \({\bf w}'\) consists of an odd chordless cycle \(c_{1}'\) in the block \({\mathcal{B}}_{1}\), see Proposition 5.2, an odd chordless cycle \(c_{2}'\) in the block \({\mathcal{B}}_{2}\) and a path ξ from the one to the other. The path ξ consists of three paths. A chordless path p 1 is from the cycle \(c_{1}'\) to y 1,2, the second is p (since otherwise the path ξ has a chord which plays the role of a bridge and destroys the minimality of the generator B w, see Theorem 2.7), and finally, a chordless path p 2 is from the cycle \(c_{2}'\) to y 2,1. Some of them may be empty. But then for the even closed walk \(w''=(c_{1}',p_{1},p,c_{2},-p,-p_{1})\) we know that (i) the two odd cycles \(c_{1}', c_{2}\) are chordless, (ii) the path (p 1,p) is chordless, (iii) there is no chord from \(c_{1}'\) to p since \(c_{1}'\) is in the block \({\mathcal{B}}_{1}\), (iv) there is no chord from c 2 to p since c 2 is in the block \({\mathcal{B}}_{2}\), and (v) there is no chord from \(c_{1}'\) to p 1 since then it will be a bridge of w′ which is impossible by Theorem 2.7. Combining all these, Theorem 2.7 says that B w is a minimal generator. The walks w″ and w have more than two consecutive edges in common and B w, B w are minimal generators and \(\deg_{G}(B_{w''})\not=\deg_{G}(B_{w})\), thus they may belong to the same minimal system of generators of I G , contradicting Proposition 3.2. Thus there is no other generator of the form B w where w′ is not an even cycle, except for B w . □

The proof of the Theorem 5.4 shows that in the case that the complete intersection graph has two non-bipartite contiguous blocks the odd chordless cycle c 1 passing through y 1,2 is a unique cycle with this property. The same is true for the cycle c 2.

For a block \({\mathcal{B}}\), we denote by \(I_{\mathcal{B}}\) the toric ideal \(I_{G}\cap K[e_{i}|e_{i}\in{\mathcal{B}}]\), see [22].

The following result describes when a toric ideal I G is a complete intersection.

Theorem 5.5

Let G be a graph and let \({\mathcal{B}}_{1},\ldots,{\mathcal{B}}_{k}\) be its blocks. I G is a complete intersection toric ideal if and only if

  1. (i)

    All minimal generators, except for at most one, of I G are of the form B w where w is an even cycle and

  2. (ii)

    The ideals \(I_{{\mathcal{B}}_{i}}\) are complete intersection toric ideals for all 1≤ik.

Proof

Let G be a graph such that the toric ideal I G is a complete intersection. The first condition follows from Theorem 5.4 and the second from Theorem 3.1 by choosing \(H=V({\mathcal{B}}_{i})\). Conversely, let G be a graph and let \({\mathcal{B}}_{1},\ldots ,{\mathcal{B}}_{k}\) be its blocks such that \(I_{{\mathcal{B}}_{i}}\) is a complete intersection toric ideal for all 1≤ik. Note that every even cycle belongs to a unique block and all generators of the ideals \(I_{{\mathcal{B}}_{i}}\) correspond to even cycles, see Theorem 5.3. The number of minimal generators of the block \({\mathcal{B}}_{i}\) is m i n i +1 if \({\mathcal{B}}_{i}\) is bipartite and m i n i if not. Therefore, the total number of minimal generators of I G of the form B w , where w is an even cycle is

$$\sum_{i=1}^k (m_i-n_i+1) -j, $$

where j is the number of non-bipartite blocks. Note that \(\sum_{i=1}^{k} m_{i}=m\) since every edge belongs to a unique block. Also \(\sum_{i=1}^{k} n_{i}=n+\sum_{i=1}^{c} (\mathrm{deg}(v_{i})-1) \), where v i are cut vertices, deg(v i ) is the degree of v i as a vertex in the block tree B(G) and c is the number of cut vertices, since each cut vertex v i belongs to deg(v i ) blocks. The block tree B(G) is bipartite with bipartition \((\mathbb{B},\mathbb{S})\), where \(\mathbb{B}\) is the set of blocks of G and \(\mathbb{S}\) is the set of cut vertices of G. Therefore, \(\sum_{i=1}^{c} \mathrm{deg}(v_{i})\) is the number of edges of the tree B(G) which is k+c−1. Combining all these facts, we have that the total number of minimal generators of I G of the form B w , where w is an even cycle, is \(m-n-\sum_{i=1}^{c} \mathrm{deg}(v_{i})+c+k-j=m-n+1-j\).

We consider the following cases:

In the case j=0, the graph is bipartite and the total number of generators is mn+1 since all minimal generators of I G are of the form B w , where w is an even cycle. This means that G is a complete intersection.

In the case j=1, the graph is not bipartite and the total number of generators is mn since all minimal generators are of the form B w , where w is an even cycle. Therefore, G is a complete intersection.

In the case j=2, the graph is not bipartite, thus its height is mn and the number of the minimal generators of the form B w , where w is an even cycle, is mn−1 so there must be exactly one more which is not of that form from condition (i) and thus the total number of minimal generators is mn and G is a complete intersection.

In the case j>2, the graph is not bipartite, thus its height is mn and the number of the minimal generators of the form B w , where w is an even cycle, is mn+1−j so there must be exactly one more which is not of that form from condition (i) and thus the total number of minimal generators is mn+2−j, which is less than the height, a contradiction to the generalized Krull’s principal ideal theorem.

Therefore, in all possible cases, G is a complete intersection. □

Theorems 4.2 and 5.5, combined with the result of I. Gitler, E. Reyes, and R. Villarreal [5, 6] that the bipartite complete intersections graphs are the ring graphs, give the following corollary.

Corollary 5.6

Let G be a graph. If G is a complete intersection then either

  1. (i)

    All blocks of G are bipartite ring graphs, or

  2. (ii)

    All blocks are bipartite ring graphs except for one, or

  3. (iii)

    All blocks are bipartite ring graphs except for two which are contiguous.

This result characterizes almost completely, except of at most two blocks, the complete intersection graphs. In the next section, we will give properties of those one or two blocks which are not bipartite ring graphs.

6 The odd cycle condition and normality

In this section, we present Theorems 6.3 and 6.4 that are interesting on their own since they give us information about complete intersection graphs. But also they can be used to provide a necessary and sufficient condition for the edge ring of a complete intersection graph to be normal, see Theorem 6.7. The normalization of the edge subring K[G] was described explicitly by A. Simis, W.V. Vasconcelos and R.V. Villarreal in [20] and by H. Ohsugi and T. Hibi in [15]. H. Ohsugi and T. Hibi related the normality of K[G] with the odd cycle condition.

Definition 6.1

We say that a graph G satisfies the odd cycle condition if for arbitrary two odd chordless cycles c 1 and c 2 in G, either c 1,c 2 have a common vertex or there exists an edge of G joining a vertex of c 1 with a vertex of c 2.

For information about graphs satisfying the odd cycle condition, see [9, 16], and [21].

Theorem 6.2

(H. Ohsugi and T. Hibi [15])

Let G be a graph. Then the following conditions are equivalent:

  • The edge ring K[G] is normal;

  • The graph G satisfies the odd cycle condition.

Theorem 6.3

Let G be a biconnected complete intersection graph G. The graph G satisfies the odd cycle condition and so the edge ring K[G] is always normal.

Proof

Let c 1, c 2 be two odd chordless cycles of G which have no common vertex. We will prove that the subgraph \({\bf c}_{1}\cup{\bf c}_{2}\) has a chord. Suppose not. Let p=(y 1,x 1,…,x 2,y 2) be the shortest path from c 1 to c 2, denoted by its vertices. The length of p is greater than one, so it may be that x 1=x 2. The subgraph \({\bf c}_{1}\cup{\bf c}_{2}\cup{\bf p}\) has chords, otherwise the walk (c 1,p,c 2,−p) defines a minimal generator, which contradicts Theorem 5.3. Since p is the shortest path, it is chordless and there is no chord in \({\bf c}_{1}\cup{\bf c}_{2}\). Therefore, all the chords of \({\bf c}_{1}\cup{\bf c}_{2}\cup{\bf p}\) should be from the cycle c 1 to x 1 and from the cycle c 2 to x 2. Let \((u_{1,1}, u_{1,2},\dots, u_{1,s_{1}})\) be the cycle c 1 denoted by its vertices, where u 1,1=y 1. We consider all chords from the cycle c 1 to x 1 together with the edge {x 1,y 1} and denote them by \(e_{1}=\{x_{1}, u_{1,i_{1}}\}, \dots, e_{t_{1}}=\{x_{1}, u_{1,i_{t_{1}}}\}\), where \(1=i_{1}<\cdots<i_{t_{1}}\). In the case that t 1>1, the cycles \(c_{1,j}=(x_{1}, u_{1,i_{j}}, u_{1,i_{j}+1},\dots, u_{1,i_{j+1}})\), for 1≤jt 1−1, and \(c_{1,t_{1}}=(x_{1}, u_{1,i_{t_{1}}}, u_{1,i_{t_{1}}+1},\dots, u_{1,s_{1}}, u_{1,1})\) are chordless and at least one of them is odd, say c 1,j , since c 1 is odd. Similarly, if t 2>1 there must be an odd chordless cycle of the form c 2,k .

  • In the case t 1>1 and t 2>1, let w be the even closed path (c 1,j ,x 1,…,x 2,c 2,k ).

  • In the case t 1=1 and t 2>1, let w be the even closed path (c 1,y 1,x 1,…,x 2,c 2,k ).

  • In the case t 1>1 and t 2=1, let w be the even closed path (c 1,j ,x 1,…,x 2,y 2,c 2).

  • In the case t 1=1 and t 2=1, let w be the even closed path (c 1,y 1,x 1,…,x 2,y 2,c 2).

In all cases w is chordless; therefore, by Theorem 2.7, the binomial B w is a minimal generator of I G , contradicting Theorem 5.3. We conclude that G satisfies the odd cycle condition. □

Theorem 6.4

Let G be a complete intersection graph such that it contains two non-bipartite blocks \({\mathcal{B}}_{1},{\mathcal{B}}_{2}\). Both \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\) contain exactly one odd chordless cycle passing through the cut point y 1,2 and y 2,1, respectively. If any of them contained another odd chordless cycle then this cycle would have distance one from the cut point y 1,2 if it is in \({\mathcal{B}}_{1}\) or y 2,1 if it is in \({\mathcal{B}}_{2}\).

Proof

Let G be a complete intersection graph such that it contains two non-bipartite blocks \({\mathcal{B}}_{1},{\mathcal{B}}_{2}\). The two blocks are contiguous, see Theorem 4.2. According to the proof of Theorem 4.2, there is one generator of the form B w , where w=(c 1,p,c 2,−p) is an even closed walk, where c 1,c 2 are the odd chordless cycles of \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\) which are passing through y 1,2 and y 2,1, respectively, and p is the unique chordless path between them. Let c 1=({y 1,2,y 1},ξ 1,{y 2,y 1,2}), where ξ 1 is a path from y 1 to y 2. Suppose that the block \({\mathcal{B}}_{1}\) contains another odd chordless cycle. Let c be an odd chordless cycle different from c 1 and ξ be a path of smallest length from c to y 1,2. Look at the even closed walk w′=(c,ξ,p,c 2,−p,−ξ). Then B w is not a minimal generator since it has a common cycle, c 2, with w and \(\deg_{G}(B_{w'})\not=\deg_{G}(B_{w})\). Since c,c 2 are chordless cycles, ξ and p are chordless paths and c,ξ belong to the block \({\mathcal{B}}_{1}\), c 2 belongs to the block \({\mathcal{B}}_{2}\) and each edge of p belongs to a different block; therefore, there must be at least one chord (bridge of w′), say e, from the cycle c to the path ξ, see Theorem 2.7. And since ξ is a path of smallest length from c to y 1,2, any chord should be from c to the second vertex of ξ, let it be x. So, certainly c does not pass through y 1,2 and this implies that c 1 is the only odd chordless cycle which belongs to the block \({\mathcal{B}}_{1}\) which passes through y 1,2. Look at the induced graph of \({\bf c}\cup\{x\}\). Since c is chordless, any chord of \({\bf c}\cup\{x\}\) is from c to x. Let (u 1,u 2,…,u s ) be the cycle c denoted by its vertices. We consider all chords from the cycle c to x and denote them by \(e_{1}=\{x, u_{i_{1}}\}, \dots, e_{t}=\{x, u_{i_{t}}\}\), where i 1<⋯<i t . Note that t≥2, since e is a chord of \({\bf c}\cup\{x\} \) and the first edge of the path ξ is also a chord of \({\bf c}\cup\{x\}\). The cycles \(o_{j}=(x, u_{i_{j}}, u_{i_{j}+1},\dots, u_{i_{j+1}}, x)\), for 1≤jt−1, and \(o_{t}=(x, u_{i_{t}}, u_{i_{t}+1},\dots, u_{s}, u_{1}, \ldots, u_{i_{1}}, x)\) are chordless and at least one of them is odd since c is odd. Without loss of generality, we can suppose that it is o 1. But then, the even closed walk w″=(o 1,ξ′,p,c 2,−p,−ξ′) has no chords and bridges, where ξ′ is the subpath of ξ from x to y 1,2. Therefore, by Theorem 2.7, B w is a minimal generator of I G . But this is not possible since w″ has a common cycle, c 2, with w, except if B w=B w . Therefore, o 1 has to be c 1, ξ′=∅, \(u_{i_{1}}=y_{1}\), \(u_{i_{2}}=y_{2}\), and x=y 1,2. Therefore, c has distance one from y 1,2. □

Definition 6.5

We say that a block is of type T i if it has i chordless odd cycles.

A bipartite block is of type T 0, while in a complete intersection graph the non-bipartite blocks may be of higher type than T 1. For example, the graph in Fig. 3 is of type T 4 and it is complete intersection, since I G =(e 1 e 3e 2 e 4,e 4 e 6e 5 e 7,e 3 e 5e 8 e 9) and h=9−6=3.

Fig. 3
figure 3

A block of type T 4

Definition 6.6

Two non-bipartite blocks are called strongly contiguous if

  • Both are of type T 1 and they have distance at most one, or

  • One is of type T 1 and the other of greater type and they have a common cut vertex.

It is easy to see that strongly contiguous blocks are always contiguous. The next theorem completely determines the form of the complete intersection graphs G for which their edge ring K[G] is normal.

Theorem 6.7

Let G be a complete intersection graph. Then G is normal if and only if G has at most one non-bipartite block or two which are strongly contiguous.

Proof

Let G be a complete intersection graph such that K[G] is normal, then G satisfies the odd cycle property. From Theorem 4.2 we know that G has at most one non-bipartite block or two which are contiguous. In the first case, we have nothing to prove. Suppose that we are in the case that there are two contiguous blocks \({\mathcal{B}}_{1}\), \({\mathcal{B}}_{2}\).

In the case that both are of type T 1, from Theorem 6.4, they have exactly one odd chordless cycle each, passing through y 1,2 and y 2,1, respectively. Since G satisfies the odd cycle property, the two blocks \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\) have to have distance at most one.

In the case that one is of type T 1 and the other of greater type, say \({\mathcal{B}}_{1}\) is the first and \({\mathcal{B}}_{2}\) the second, the block \({\mathcal{B}}_{1}\) has only one odd chordless cycle passing through y 1,2, the block \({\mathcal{B}}_{2}\) has more than one chordless cycle, one is passing through y 2,1 and the others have distance one from y 2,1, by Theorem 6.4. Since G satisfies the odd cycle property, the two blocks have to have a common (cut) vertex, y 1,2=y 2,1. Finally, it is impossible to have both \({\mathcal{B}}_{1}, {\mathcal{B}}_{2}\) of type greater than T 1, since in this case there is an odd chordless cycle in \({\mathcal{B}}_{1}\) with distance one from y 1,2 and there is an odd chordless cycle in \({\mathcal{B}}_{2}\) with distance one from y 2,1. So these two odd cycles have distance at least two, contradicting the odd cycle property. So in all possible cases, the two blocks are strongly contiguous.

For the converse, in the case that the graph G has at most one non-bipartite block, Theorem 6.3 implies that G satisfies the odd cycle property and thus K[G] is normal. In the case that G has two non-bipartite blocks which are strongly contiguous, Theorem 6.4 implies that G satisfies the odd cycle condition and thus K[G] is normal. □

For example, consider the graph G in Fig. 4 with seven vertices v 1,v 2,…,v 7 and nine edges e 1={v 1,v 2}, e 2={v 2,v 3}, e 3={v 3,v 1}, e 4={v 1,v 4}, e 5={v 4,v 5}, e 6={v 5,v 6}, e 7={v 6,v 4}, e 8={v 6,v 7}, e 9={v 5,v 7}. The graph G has two non-bipartite blocks which are contiguous. The one is of type T 1 and the other of type T 2 and they have distance one. Therefore, they are not strongly contiguous. From Theorem 5.5, the graph G is a complete intersection graph and the toric ideal is generated by the two circuits \(e_{1}e_{3}e_{5}e_{7}-e_{2}e_{4}^{2}e_{6}\) and e 5 e 8e 7 e 9. It follows from Theorem 6.7 that the edge ring K[G] is not normal, but note that the ideal I G is generated by circuits with a square-free term, see Theorem 3.2 of [13].

Fig. 4
figure 4

The example