1 Introduction

Let G be a simple graph on [n] and \(S=K[x_1, \ldots , x_n,y_1, \ldots , y_n]\), where K is a field. The binomial edge ideal of the graph G, \(J_G =(x_i y_j - x_j y_i : \{i,j\} \in E(G), \; i <j)\), was introduced by Herzog et al. in [9] and independently by Ohtani in [21]. Since then researchers have been trying to study the algebraic invariants of \(J_G\) in terms of the combinatorial invariants of G. In [5, 9, 13, 15, 19, 23, 25, 26], the authors have established connections between homological invariants such as depth, codimension, Betti numbers and Castelnuovo–Mumford regularity of \(J_G\) with certain combinatorial invariants associated with the graph G. The study of Castelnuovo–Mumford regularity of binomial edge ideals has attracted a lot of attention in the recent past due to its algebraic and geometric importance. In [19, Theorem 1.1], Matsuda and Murai proved that for any graph G on [n], \(l(G) \le \mathrm {reg}(S/J_G) \le n-1\), where l(G) is the length of a longest induced path in G. In the same article, they conjectured that \(\mathrm {reg}(S/J_G) = n-1\) if and only if \(G=P_n\). This conjecture was settled in affirmative by Kiani and Saeedi Madani in [15]. For a graph G, let c(G) denote the number of maximal cliques in G. If G is a closed graph, i.e., the generating set of \(J_G\) is a Gröbner basis with respect to lexicographic order induced by \(x_1> \cdots>x_n>y_1>\cdots >y_n\), then Saeedi Madani and Kiani [25] proved that \(\mathrm {reg}(S/J_G) \le c(G)\). In [26], the following conjecture was proposed.

Conjecture 1.1

Let G be a graph on [n]. Then, \(\mathrm {reg}(S/J_G) \le c(G)\).

In [7], Ene and Zarojanu proved the conjecture for block graphs. In [12], Jayanthan and Kumar proved the conjecture for k-fan graph of the complete graph. In [24], Rouzbahani Malayeri et al. proved the conjecture for the class of chordal graphs. Recently, in [14], Kahle and Krüsemann proved the conjecture for cographs. In the third section, we prove Saeedi Madani–Kiani conjecture for some classes of non-chordal graphs. We prove Conjecture 1.1 for the class of quasi-block graphs (see Sect. 3 for the definition). Indeed, we give an example of a quasi-block graph to show that the upper bound is tight. Then, we prove Conjecture 1.1 for semi-block graphs (see Sect. 3 for the definition). We then give another proof of Conjecture 1.1 for the class of chordal graphs. Also, we provide a sufficient condition for chordal graphs so that the inequality is strict in Conjecture 1.1.

In the fourth section, we obtain the regularity of binomial edge ideals of Jahangir graphs (see Sect. 4 for the definition). To compute the regularity of binomial edge ideals of Jahangir graphs, we use [6, Theorem 2.1], which is a recent result due to Ene, Rinaldo and Terai.

In [11], Hibi and Matsuda studied the regularity of binomial edge ideals of graphs from the algebraic perspective and conjectured that the regularity is bounded above by the degree of the h-polynomial of \(S/J_G\).

Conjecture 1.2

[11, Conjecture 0.1] Let G be a graph on [n]. Then, \(\mathrm {reg}(S/J_G)\le \deg h_{S/J_G}(t)\).

In the last section, we obtain a sufficient condition for Conjecture 1.2 to be true. Recently, in [14], Kahle and Krüsemann found a counterexample to Conjecture 1.2. We give another example to show that Conjecture 1.2 is not true in general, even for chordal graphs.

2 Preliminaries

In this section, we recall some notation and fundamental results on graphs and the corresponding binomial edge ideals which are used throughout this paper.

Let G be a finite simple graph with vertex set V(G) and edge set E(G). For \(A \subseteq V(G)\), G[A] denotes the induced subgraph of G on the vertex set A, i.e., for \(i, j \in A\), \(\{i,j\} \in E(G[A])\) if and only if \( \{i,j\} \in E(G)\). For a vertex v, \(G \setminus v\) denotes the induced subgraph of G on the vertex set \(V(G) \setminus \{v\}\). A vertex \(v \in V(G)\) is said to be a cut vertex if \(G \setminus v\) has more connected components than G. A subset U of V(G) is said to be a clique if G[U] is a complete graph. For \(v \in V(G)\), let \({\text {cdeg}}_G(v)\) denote the number of maximal cliques which contains v. We say that G is k-vertex connected, if \(k <|V(G)|\) and for every subset \(S \subset V(G)\) such that \(|S| < k\), the induced subgraph \(G[V(G)\setminus {S}]\) is connected. The vertex connectivity of G, denoted by \(\kappa (G)\), is defined as the maximum integer k such that G is k-vertex connected.

A simplicial complex \(\Delta \) on the vertex set [n] is a collection of subsets of [n] such that: (i) \(\{v\} \in \Delta \) for all \(v \in [n]\); (ii) \(F \in \Delta \) and \(G\subseteq F\) implies \(G \in \Delta \). An element \(F \in \Delta \) is called a face of \(\Delta \). A maximal face of \(\Delta \) with respect to inclusion is called a facet of \(\Delta \). A facet F of \(\Delta \) is called a leaf, if either F is the only facet, or else there exists a facet G such that for each facet H of \(\Delta \) with \(H\ne F\), \(H\cap F\subset G\cap F\). A vertex v is said to be a free vertex (simplicial vertex) if it belongs to exactly one facet of \(\Delta \). Each leaf F has at least one free vertex.

The simplicial complex \(\Delta \) is called a quasi-forest, if its facets can be ordered \(F_1,\ldots ,F_s\) such that for all \(i>1\), the facet \(F_i\) is a leaf of the simplicial complex with facets \(F_1,\ldots , F_{i-1}\). Such an order of the facets is called a leaf order. A connected quasi-forest is called a quasi-tree. The collection of all cliques of a graph G form a simplicial complex which is called clique complex of G and is denoted by \(\Delta (G).\) Its facets are the maximal cliques of G. The clique number of a graph G, denoted by \(\omega ({G})\), is the maximum size of the maximal cliques of G.

A vertex v is said to be an internal vertex, if v is not a free vertex. Let \({\text {iv}}(G)\) denote the number of internal vertices of G. The neighborhood of a vertex v, denoted by \(N_G(v),\) is defined as \(\{u \in V(G) : \{u,v\} \in E(G)\}\). For a vertex v, \(G_v\) is the graph on the vertex set V(G) and edge set \(E(G_v) =E(G) \cup \{ \{u,w\}: u,w \in N_G(v)\}\). For \(e \in E(G)\), \(G\setminus e\) is the graph on the vertex set V(G) and edge set \(E(G) \setminus \{e\}\).

For \(T \subset [n]\), let \(\bar{T} = [n]\setminus T\) and \(c_G(T)\) denote the number of connected components of \(G[\bar{T}]\). Let \(G_1,\ldots ,G_{c_{G}(T)}\) be the connected components of \(G[\bar{T}]\). For each i, let \(\tilde{G_i}\) denote the complete graph on \(V(G_i)\). Set \(P_T(G) = (\underset{i\in T}{\cup }\{x_i,y_i\}, J_{\tilde{G_1}},\ldots , J_{\tilde{G}_{c_G(T)}}).\) In [9], it was shown by Herzog et al. that \(J_G = \underset{T \subseteq [n]}{\cap }P_T(G).\)

The following basic property of regularity is used repeatedly in this article. We refer the reader to the book [22, Chapter 18] for more properties on regularity.

Lemma 2.1

Let MN and P be finitely generated graded S-modules. If

$$\begin{aligned} 0 \rightarrow {M} \xrightarrow {f} {N} \xrightarrow {g} {P} \rightarrow 0 \end{aligned}$$

is a short exact sequence with fg graded homomorphisms of degree zero, then

  1. (1)

    \(\mathrm {reg}({M}) \le \max \{\mathrm {reg}({N}),\mathrm {reg}({P})+1\}\).

  2. (2)

    \(\mathrm {reg}({M}) = \mathrm {reg}({N})\), if \(\mathrm {reg}({N}) >\mathrm {reg}({P})\).

3 Saeedi Madani–Kiani conjecture

In this section, we prove Conjecture 1.1 for some classes of non-chordal graphs. Also, we give another proof of Conjecture  1.1 for the class of chordal graphs. We begin by recalling a lemma by Ohtani which is highly useful in computing the regularity of binomial edge ideals.

Lemma 3.1

[21, Lemma 4.8] Let G be a graph. If v is an internal vertex, then

$$\begin{aligned} J_G =J_{G_v} \cap ((x_v,y_v)+J_{G\setminus v}). \end{aligned}$$

Note that \(J_{G_v} +((x_v,y_v)+J_{G\setminus v}) = (x_v,y_v)+J_{G_v \setminus v}\). Therefore, we have the following short exact sequence:

$$\begin{aligned} 0 \longrightarrow \dfrac{S}{J_{G} } \longrightarrow \dfrac{S}{J_{G_v}} \oplus \dfrac{S}{(x_v,y_v)+J_{G \setminus v}} \longrightarrow \dfrac{S}{(x_v,y_v)+J_{G_v \setminus v} } \longrightarrow 0. \end{aligned}$$
(1)

We first establish a connection between the number of internal vertices of G, \(G_v\) and \(G\setminus v\).

Lemma 3.2

Let G be a graph on [n]. If v is an internal vertex of G, then \({\text {iv}}(G)>{\text {iv}}(G_v)\) and \({\text {iv}}(G)>{\text {iv}}(G \setminus v)\).

Proof

If \({\text {iv}}(G_v)=0\), then \({\text {iv}}(G)>{\text {iv}}(G_v).\) Let \({\text {iv}}(G_v)=k >0\). Let \(v_1,\ldots , v_k\) be the internal vertices of \(G_v\). Note that v is a free vertex of \(G_v\). Assume that \(v_{r+1}, \ldots , v_k \in N_G(v)=N_{G_v}(v)\). For \(r+1 \le i \le k\), \(v_i\) is not a free vertex of \(G_v\). Therefore, \(v_i\) is not a free vertex of G. For \(1 \le i \le r\), \(v_i\) is an internal vertex of G, since \(v_i \notin N_G(v)\). As v is an internal vertex of G, we have \({\text {iv}}(G) \ge k+1\). Let u be a free vertex of G. In \(G\setminus v\), u is either a free vertex or an isolated vertex, i.e., u is not an internal vertex of \(G \setminus v\). Hence, \({\text {iv}}(G) >{\text {iv}}(G \setminus v)\). \(\square \)

So far Conjecture 1.1 has been proved only for chordal graphs, (see [24, Theorem 3.5]). There have been no attempts on non-chordal graphs. Now, we prove Conjecture 1.1 for a class of non-chordal graphs.

Let H be a connected closed graph on [n] such that \(S/J_H\) is Cohen–Macaulay. By [5, Theorem 3.1], there exist integers \(1=a_1< a_2< \cdots< a_s <a_{s+1} = n\) such that \(F_i=[a_i,a_{i+1}]\), for \(1\le i \le s\) and \(F_1,\ldots ,F_s\) is a leaf order of \(\Delta (H)\). Set \(e=\{1,n\}\). The graph \(G=H \cup \{e\}\) is called the quasi-cycle graph associated with H. In [20], the Hilbert series of the binomial edge ideal of quasi-cycles was studied.

Remark 3.3

Let G be the quasi-cycle graph associated with a Cohen–Macaulay closed graph H. Let \(F_1,\ldots ,F_s\) be a leaf order of \(\Delta (H)\). If \(H \ne P_3\), then \({\text {iv}}(G)\ge s\) and \({\text {iv}}(H) =s-1\). If \(s=2\), then G is a chordal graph. If \(s>2\), then G has an induced cycle of length \(s+1\) on the vertex set \(\{a_1,a_2,\ldots ,a_s,a_{s+1}\}\). Thus, for \(s>2\), G is not a chordal graph.

Example 3.4

Let H and G be the graphs shown in the figure below. It can be observed that H is a Cohen–Macaulay closed graph and G is a quasi-cycle graph associated with H.

figure a

For a graph G, a maximal subgraph of G without a cut vertex is called a block of G. A graph G is said to be a block graph if each block of G is a clique. A block B of a graph G is called a quasi-block if B is a quasi-cycle other than \(K_3\).

Definition 3.5

A graph G is said to be a quasi-block graph if G satisfies the following:

  1. (1)

    Each block of G is either a clique or a quasi-block.

  2. (2)

    If v is an internal vertex of a quasi-block B, then for any \(u \in N_G(v) \setminus V(B)\), u is not an internal vertex of any block.

One can note that a quasi-block graph need not be a chordal graph. We denote by \({\text {qc}}(G)\), the number of quasi-blocks in G.

Remark 3.6

If G is a connected quasi-block graph and v is an internal vertex of G, then \(G\setminus v\) is a quasi-block graph. If B is a quasi-block of G and \(v \in V(B)\) is an internal vertex of B, then \(G\setminus v\) is a quasi-block graph with \({\text {qc}}(G\setminus v)={\text {qc}}(G)-1\).

Theorem 3.7

Let G be a quasi-block graph. Then, \(\mathrm {reg}(S/J_G) \le c(G)\).

Proof

Let \(G_1,\ldots ,G_c\) be the connected components of G. Set \(S_{G_i}=K[x_j,y_j :j\in V(G_i)]\). Then, \(S/J_G\cong S_{G_1}/J_{G_1}\otimes \cdots \otimes S_{G_c}/J_{G_c}\) which implies that \(\mathrm {reg}( S/J_G)=\mathrm {reg}( S_{G_1}/J_{G_1})+\cdots + \mathrm {reg}( S_{G_c}/J_{G_c})\). Also, \(c(G)= c(G_1)+\cdots +c(G_c)\). Therefore, without loss of generality, we may assume that G is a connected graph. We prove the result by induction on \({\text {qc}}(G)\). If \({\text {qc}}(G)=0\), then every block of G is a clique, thus G is a block graph. By [7, Theorem 3.9], the assertion follows.

Assume that \({\text {qc}}(G)>0\). Let \(B_1,\ldots ,B_{{\text {qc}}(G)}\) be the quasi-blocks of G. Now, we proceed by induction on the number of internal vertices of \(B=B_{{\text {qc}}(G)}\). It follows from Remark  3.3 that \({\text {iv}}(B) \ge 2\). If \({\text {iv}}(B)=2\), then there exists an edge e such that \(B\setminus e\) is a Cohen–Macaulay closed graph with exactly one internal vertex. Let \(v \in V(B)\) be the internal vertex of \(B\setminus e\). Therefore, v is also an internal vertex of G. By Lemma 3.1, \(J_G=J_{G_v} \cap ((x_v,y_v)+J_{G\setminus v})\). Let \(B_v\) be the block of \(G_v\) which contains v. Note that \(B_v\) is a clique as \({\text {iv}}(B) =2\). Since v is an internal vertex of B, \(v \notin V(B_i)\), for \(i=1,\ldots , {\text {qc}}(G)-1\) and hence, \({\text {qc}}(G_v) = {\text {qc}}(G)-1\). Therefore, by induction \(\mathrm {reg}(S/J_{G_v})\le c(G_v) < c(G)\). It follows from Remark 3.6 and induction that \(\mathrm {reg}(S/((x_v,y_v)+J_{G \setminus v})) \le c(G\setminus v) \le c(G) \). Since \(G_v \setminus v\) is an induced subgraph of \(G_v\), by [26, Proposition 8], \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v}))\le \mathrm {reg}(S/J_{G_v})< c(G)\). Thus, it follows from Lemma  2.1 and the short exact sequence (1) that \(\mathrm {reg}(S/J_G)\le c(G)\).

Now, assume that \({\text {iv}}(B)>2\). Let \(v \in V(B)\) be an internal vertex of \(B \setminus e\). Therefore, v is an internal vertex of G. Again, by Lemma 3.1, \(J_G =J_{G_v} \cap ((x_v,y_v)+J_{G \setminus v})\). By Remark 3.6 and induction, \(\mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v})) \le c(G\setminus v) \le c(G)\). Let \(B_v\) be the block of \(G_v\) which contains v. If \({\text {iv}}(B)=3\), then \(B_v\) is a clique. Therefore, \({\text {qc}}(G_v) ={\text {qc}}(G)-1\) and hence, by induction \(\mathrm {reg}(S/J_{G_v})\le c(G_v)< c(G)\). If \({\text {iv}}(B)>3\), then \(B_v\) is a quasi-block. By Lemma 3.2, \({\text {iv}}(B_v) <{\text {iv}}(B)\). Since v is an internal vertex of B, \(v \notin V(B_i)\), for \(i=1,\ldots , {\text {qc}}(G)-1\) and hence, \({\text {qc}}(G_v) = {\text {qc}}(G)\). Therefore, \(G_v\) is a quasi-block graph with \({\text {qc}}(G_v)={\text {qc}}(G)\) and \({\text {iv}}(B_v) <{\text {iv}}(B)\). By induction, \(\mathrm {reg}(S/J_{G_v})\le c(G_v)< c(G)\), since \({\text {iv}}(B_v) <{\text {iv}}(B)\). It follows from [26, Proposition 8] that \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v})) \le \mathrm {reg}(S/J_{G_v}) < c(G)\) as \(G_v \setminus v\) is an induced subgraph of \(G_v\). Hence, using Lemma 2.1 in the short exact sequence (1), we conclude that \(\mathrm {reg}(S/J_G) \le c(G)\). \(\square \)

The following example illustrates that the upper bound obtained in Theorem 3.7 is tight.

Example 3.8

Let G be a quasi-cycle graph such that for some \(1 \le i \le s-1\), \(|F_i|>2\) and \(|F_{i+1}| >2\). Then, \(c(G) = l(G\setminus a_{i+1}) \le l(G)\). Hence, it follows from [19, Theorem 1.1] and Theorem 3.7 that \(\mathrm {reg}(S/J_G)=c(G)\).

Also, the upper bound obtained in Theorem 3.7 can be strict upper bound. For example, \(G=C_n\) is a quasi-block graph such that \(c(G)=n\) and by [30, Corollary 16], \(\mathrm {reg}(S/J_G)=c(G)-2<c(G)\).

Let H be a connected closed graph on [m] such that \(S_H/J_H\) is Cohen–Macaulay. By [5, Theorem 3.1], there exist integers \(1=a_1< a_2< \cdots< a_s <a_{s+1} = m\) such that \(F_i=[a_i,a_{i+1}]\), for \(1\le i \le s\) and \(F_1,\ldots ,F_s\) is a leaf order of \(\Delta (H)\). Set \(F_{s+1}=[m,n] \cup \{1\}\). The graph G on the vertex set [n] and edge set \(E(G) =E(H) \cup \{\{i,j\}: i \ne j, i,j \in F_{s+1}\}\) is called a semi-cycle graph associated with H.

Example 3.9

Let H and G be the graphs shown in the figure below. Then, it can be seen that H is a Cohen–Macaulay closed graph and G is a semi-cycle graph associated with H.

figure b

Remark 3.10

Let G be a semi-cycle graph associated with the Cohen–Macaulay closed graph H. Let \(F_1,\ldots ,F_s\) be a leaf order of \(\Delta (H)\). If \(H \ne P_3\), then \({\text {iv}}(G)\ge s\) and \({\text {iv}}(H) =s-1\). If \(s=2\), then G is a chordal graph. If \(s>2\), then G has an induced cycle on the vertex set \(\{a_1,a_2,\ldots ,a_s,a_{s+1}\}\) of length \(s+1\) and hence, G is not chordal. Note that every quasi-cycle is a semi-cycle, but a semi-cycle need not be a quasi-cycle. Also, \(C_n\) is a semi-cycle graph.

A block B of a graph G is said to be a semi-block if B is a semi-cycle with \(B \ne K_3\). A graph G is said to be a semi-block graph if all except one block are cliques and the block which is not a clique is a semi-block.

We now prove Conjecture 1.1 for semi-block graphs.

Theorem 3.11

Let G be a semi-block graph. Then, \(\mathrm {reg}(S/J_G) \le c(G)\).

Proof

Let B be the semi-block of G. If B is a quasi-block of G, then G is a quasi-block graph. Therefore, by Theorem  3.7, the assertion follows. Assume that B is not a quasi-block, i.e., \({\text {iv}}(B) \ge 3\) and for each \(1 \le i \le s+1\), \(|F_i| \ge 3\). We proceed by induction on \({\text {iv}}(B)\). For \({\text {iv}}(B) =3\), we claim that \(\mathrm {reg}(S/J_G)\le c(G)-1\). Let \(v \in V(B)\) be an internal vertex of B. Therefore, v is also an internal vertex of G. It follows from Lemma 3.1 that \(J_G =J_{G_v} \cap ((x_v,y_v)+J_{G \setminus v})\). Let \(B_v\) be the block of \(G_v\) which contains v. Note that \(B_v\) is a chordal graph with \(c(B_v)=2\) and hence, \(G_v\) is a chordal graph with \(c(G_v)\le c(G) -2\). It follows from [24, Theorem 3.5] that \(\mathrm {reg}(S/J_{G_v}) \le c(G_v)\le c(G)-2\). As \(G\setminus v\) is a block graph with \(c(G \setminus v) \le c(G)-1\), by [7, Theorem 3.9], \(\mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v})) \le c(G\setminus v)\le c(G)-1\). Since \(G_v\setminus v\) is an induced subgraph of \(G_v\), by [26, Proposition 8], \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v})) \le \mathrm {reg}(S/J_{G_v})\). Thus, it follows from Lemma  2.1 and the short exact sequence (1) that \(\mathrm {reg}(S/J_G)\le c(G)-1\).

Assume that \({\text {iv}}(B)>3\) and let v be an internal vertex of B. Then, \(G \setminus v\) is a block graph with \(c(G\setminus v)\le c(G)\). Therefore, by [7, Theorem 3.9], \(\mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v}))\le c(G)\). Note that \(B_v\) is a semi-block. It follows from Lemma 3.2 that \({\text {iv}}(B_v)<{\text {iv}}(B)\). If \({\text {iv}}(B) =4\), then \(c(G_v)\le c(G)\) and \({\text {iv}}(B_v)=3\). Therefore, \(\mathrm {reg}(S/J_{G_v})\le c(G_v)-1 <c(G)\). If \({\text {iv}}(B)>4\), then \(c(G_v)<c(G)\) and hence, by induction, \(\mathrm {reg}(S/J_{G_v}) \le c(G_v)< c(G)\). It follows from [26, Proposition 8] that \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v})) \le \mathrm {reg}(S/J_{G_v})<c(G)\). Hence, by Lemma  2.1 and the short exact sequence (1), \(\mathrm {reg}(S/J_G)\le c(G)\). \(\square \)

For a chordal graph G, we recall a result from [24] which connects c(G) and \(c(G_v)\).

Lemma 3.12

[24, Lemma 3.4] Let G be a chordal graph and v be a vertex of G which lies in t maximal cliques of G. Then, \(c(G_v)\le c(G)-t+1\). In particular, if \(t \ge 2\), then \(c(G_v)<c(G)\).

As a consequence of Lemma 3.12, we have the following.

Corollary 3.13

Let G be a chordal graph. If v is an internal vertex of G, then \(G_v\) is a chordal graph and \(c(G_v)<c(G)\).

Proof

The assertion that \(G_v\) is a chordal graph follows from the second paragraph of the proof of [24, Theorem 3.5]. Since v is an internal vertex, v belongs to at least two maximal cliques and hence, by Lemma 3.12, \(c(G_v)<c(G)\). \(\square \)

Remark 3.14

If G is a chordal graph, then \(G\setminus v\) is a chordal graph for any v. If v is an internal vertex of G, then \(c(G \setminus v) \le c(G)\).

In [24], Rouzbahani Malayeri et al. proved Saeedi Madani–Kiani conjecture for chordal graphs. They proved the result by induction on \(n+c(G)\). We give another proof of the same by induction on \({\text {iv}}(G)\).

Theorem 3.15

[24, Theorem 3.5] Let G be a chordal graph. Then, \(\mathrm {reg}(S/J_G) \le c(G)\).

Proof

Without loss of generality, we may assume that G is connected. We prove the assertion by induction on \({\text {iv}}(G).\) If \({\text {iv}}(G)=0,\) then G is a complete graph. Therefore, \(c(G) =1\) and the result follows from Eagon–Northcott complex [4]. Assume that \({\text {iv}}(G)>0\) and if H is a chordal graph with \({\text {iv}}(H) < {\text {iv}}(G)\), then \(\mathrm {reg}(S_H/J_H) \le c(H)\), where \(S_H=K[x_i,y_i:i \in V(H)]\). Let v be an internal vertex of G. It follows from Lemma  3.1 that \(J_G =J_{G_v} \cap ((x_v,y_v)+J_{G \setminus v}).\)

By Corollary 3.13, \(G_v\) is a connected chordal graph. Now, by Lemma 3.2, \({\text {iv}}(G_v)<{\text {iv}}(G)\) and hence, by induction, \(\mathrm {reg}(S/J_{G_v})\le c(G_v).\)

It follows from Lemma 3.2 that \({\text {iv}}(G \setminus v)<{\text {iv}}(G)\). If \(G \setminus v\) is connected, then by induction, \(\mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v})) \le c(G\setminus v)\). If v is a cut vertex, then let \(H_1,\ldots ,H_p\) be the connected components of \(G\setminus v\). By induction, \(\mathrm {reg}(S_{H_i}/J_{H_i}) \le c(H_i)\) for each i. Therefore,

$$\begin{aligned} \mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v})) = \underset{i \in [p]}{\sum } \mathrm {reg}(S_{H_i}/J_{H_i}) \le \underset{i \in [p]}{\sum }c(H_i)=c(G \setminus v). \end{aligned}$$

The graph \(G_v \setminus v\) is an induced subgraph of \(G_v\). Therefore, by [26, Proposition 8], \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v}))\le \mathrm {reg}(S/J_{G_v})\le c(G_v)\).

Now, by Corollary 3.13, \(c(G_v)<c(G)\) and by Remark  3.14, \(c(G\setminus v)\le c(G)\). Hence, by applying Lemma 2.1 in the short exact sequence (1), we get the desired result. \(\square \)

We recall notation of decomposability from [23]. A graph G is called decomposable, if there exist subgraphs \(G_1\) and \( G_2\) such that G is obtained by identifying a free vertex \(v_1\) of \(G_1\) with a free vertex \(v_2\) of \(G_2 \), i.e., \(G= G_1 \cup G_2\) with \(V(G_1)\cap V(G_2)=\{v\}\) such that v is a free vertex of both \(G_1\) and \(G_2\).

A graph G is called indecomposable, if it is not decomposable. Up to ordering, G has a unique decomposition into indecomposable subgraphs, i.e., there exist \(G_1,\ldots ,G_r\) indecomposable induced subgraphs of G with \(G=G_1\cup \cdots \cup G_r\) such that for each \(i \ne j\), either \(V(G_i) \cap V(G_j) = \emptyset \) or \(V(G_i) \cap V(G_j) =\{v\}\) and v is a free vertex of both \(G_i\) and \(G_j\).

It follows from [13, Theorem 3.1] that if \(G = G_1 \cup \cdots \cup G_r\) is a decomposition into indecomposable graphs, then \(\mathrm {reg}(S/J_G) = \sum _{i=1}^r \mathrm {reg}(S/J_{G_i})\). Therefore, we consider indecomposable graphs to study the regularity.

Let \(u,v \in V(G)\) be such that \(e=\{u,v\} \notin E(G)\), then we denote by \(G_e\), the graph on the vertex set V(G) and edge set \(E(G_e) = E(G) \cup \{\{x,y\} : x,\; y \in N_G(u) \; or \; x,\; y \in N_G(v) \}\). An edge e is said to be a cut edge if the number of nontrival connected components of \(G \setminus e\) is more than the number of non-trival connected components of G.

In the following theorem, we give a sufficient condition for a chordal graph whose regularity is not maximal.

Theorem 3.16

Let G be a connected indecomposable chordal graph on [n]. If G has a cut edge, then \(\mathrm {reg}(S/J_G) <c(G)\).

Proof

Let \(e=\{u,v\}\) be a cut edge of G. Let \(H_1\) and \(H_2\) be connected components of \(G\setminus e\) with \(u \in V(H_1)\) and \(v \in V(H_2)\). Since G is an indecomposable graph, u and v are internal vertices of \(H_1\) and \(H_2\), respectively. Note that \((G\setminus e)_e =(H_1)_u\sqcup (H_2)_v\). By Corollary  3.13, \((H_1)_u\) and \((H_2)_v\) are chordal graphs and \(c((G\setminus e)_e) =c((H_1)_u)+c((H_2)_v)\le c(H_1)+c(H_2)-2= c(G)-3\). Therefore, by Theorem 3.15, \(\mathrm {reg}(S/J_{(G\setminus e)_e}) =\mathrm {reg}(S_{H_1}/J_{(H_1)_u}) +\mathrm {reg}(S_{H_2}/J_{(H_2)_v})\le c(G)-3\). Also, \(G\setminus e=H_1 \sqcup H_2\) is a chordal graph and \(c(G\setminus e) =c(G)-1\). Therefore, by Theorem 3.15, \(\mathrm {reg}(S/J_{G\setminus e}) =\mathrm {reg}(S_{H_1}/J_{H_1})+\mathrm {reg}(S_{H_2}/J_{H_2})\le c(G)-1\). It follows from Lemma [15, Proposition 2.1(a)] that \(\mathrm {reg}(S/J_G) < c(G)\). \(\square \)

The following example illustrates that the assumption in Theorem  3.16, that G contains a cut edge, is not a necessary condition. First, we recall the definition of join of graphs. Let H and \(H'\) be two graphs with the vertex sets [p] and [q], respectively. The join of H and \(H'\), denoted by \(H*H'\), is the graph with vertex set \([p] \sqcup [q]\) and the edge set \(E(H*H')= E(H) \cup E(H') \cup \{\{i,j\}| i \in [p], j \in [q]\}\).

Example 3.17

For \(n \ge 3\), let \(G=P_2 * K_n^c\), where \(K_n^c\) is a graph on n vertices and has no edges. Note that G is an indecomposable chordal graph on \(n+2\) vertices. Observe that \(c(G) =n\) and G has no cut edge. It follows from [27, Theorem 2.1] that \(\mathrm {reg}(S/J_G) =\max \{\mathrm {reg}(S/J_{P_2}), 2\} =2\).

4 Regularity of binomial edge ideals of Jahangir graphs

In this section, we obtain the regularity of binomial edge ideals of Jahangir graphs. First, we recall the definition of Jahangir graph.

Definition 4.1

The Jahangir graph denoted by \(J_{m,n}\) is a graph on the vertex set \([mn+1]\), for \(m \ge 1\) and \(n \ge 3\), such that the induced subgraph on [mn] is \(C_{mn}\) and the neighborhood of vertex \(mn+1\) is \(\{1,m+1,\ldots ,m(n-1)+1\}\).

Example 4.2

We give illustrations of \(J_{1,8}\) and \(J_{2,4}\) below.

figure c

One can note that if \(m >1\), then \(J_{m,n}\) is not a chordal graph and \(c(J_{m,n})=n(m+1)\). It follows from [15, Theorem 3.2] that

$$\begin{aligned} \mathrm {reg}(S/J_{J_{m,n}}) \le mn-1<c(J_{m,n}). \end{aligned}$$

Since \(l(J_{m,n})=mn-2\), by [19, Theorem 1.1], \(mn-2 \le \mathrm {reg}(S/J_{J_{m,n}})\). If \(m=1\), then \(J_{1,n}\) is the wheel graph \(W_n\) and hence, by virtue of [27, Theorem 2.1], \(\mathrm {reg}(S/J_{J_{1,n}})=n-2\). We now prove the same for \(m\ge 2\). First, we recall a result due to Ene et al. from [6] which is useful to compute the regularity of binomial edge ideals of Jahangir graphs.

Theorem 4.3

[6, Theorem 2.1] Let G be a connected graph on [n]. Then, \(\mathrm {reg}(S/J_G) \le n-\omega (G) +1\).

We now obtain the regularity of binomial edge ideals of Jahangir graphs. To compute the regularity of \(J_{m,n}\), we need the following lemma. The idea of this lemma is based on [6, Lemma 3.3].

Lemma 4.4

Let G be a connected graph on [n]. If G has an internal vertex v such that \(\deg _G(v) \ge 4\) and \(G\setminus v\) is not a path graph on \(n-1\) vertices, then \(\mathrm {reg}(S/J_G) \le n-3\).

Proof

Since v is an internal vertex, by Lemma 3.1, \(J_G = J_{G_v} \cap ((x_v,y_v)+J_{G \setminus v})\). Note that \(\omega (G_v) \ge 5\) and \(\omega (G_v \setminus v) \ge 4\) as \(\deg _G(v) \ge 4\). By Theorem 4.3, \(\mathrm {reg}(S/J_{G_v}) \le n-\omega (G_v)+1 \le n-4\) and \(\mathrm {reg}(S/((x_v,y_v)+J_{G_v \setminus v})) \le (n-1)-\omega (G_v \setminus v)+1 \le n-4\). Since \(G\setminus v\) is not a path graph, it follows from [15, Theorem 3.2] that \(\mathrm {reg}(S/((x_v,y_v)+J_{G\setminus v})) \le (n-1)-2=n-3\). Hence, the assertion follows from Lemma 2.1 and the short exact sequence (1). \(\square \)

We conclude this section by computing the regularity of binomial edge ideals of Jahangir graphs.

Theorem 4.5

For \(m \ge 2 \text { and } n \ge 3\), let \(G=J_{m,n}\). Then, \(\mathrm {reg}(S/J_G) =mn-2\).

Proof

Since \(l(G)=mn-2\), by [19, Theorem 1.1], \(mn-2 \le \mathrm {reg}(S/J_{G})\). Therefore, it is enough to prove that \(\mathrm {reg}(S/J_G) \le mn-2\). Set \(v=mn+1\). Observe that v is an internal vertex of G. If \(n \ge 4\), then \(\deg _G(v)=n \ge 4\) and \(G\setminus v\) is not a path graph on mn vertices. Thus, by Lemma 4.4, \(\mathrm {reg}(S/J_G) \le mn-2\).

Now, we assume that \(n=3\). By Lemma 3.1, \(J_G = J_{G_v} \cap ((x_v,y_v)+J_{G \setminus v})\). Note that \(\omega (G_v) = 4\). Hence, by virtue of Theorem 4.3, \(\mathrm {reg}(S/J_{G_v})\le (3m+1)-4+1 =3m-3\). Set \(H =G_v \setminus v\). Then, H is a connected graph on 3m vertices, \(\deg _H(1) =4\) and \(H \setminus 1\) is not a path graph on \(3m-1\) vertices. Thus, by Lemma 4.4, \(\mathrm {reg}(S/((x_v,y_v)+J_{H})) \le 3m-3\). It is clear that \(G \setminus v =C_{3m}\), thus by [30, Corollary 16], \(\mathrm {reg}(S/((x_v,y_v)+J_{G \setminus v})) =3m-2\). By virtue of Lemma  2.1 and the short exact sequence (1), we get \(\mathrm {reg}(S/J_G) \le 3m-2\). \(\square \)

5 Hibi–Matsuda conjecture

Let \(M =\underset{k \in \mathbb {N}}{\bigoplus }M_k\) be a finite graded S-module of Krull dimension d. The function \(H_M : \mathbb {N} \rightarrow \mathbb {N}\) defined as \(H_M(k) = l(M_k)\) is called the Hilbert function of M. The Hilbert series of M is the generating series of the Hilbert function \(H_M\) and is denoted by \({\text {Hilb}}_{M}(t)= \underset{k \in \mathbb {N}}{\sum }l(M_k) t^k\). By [2, Corollary 4.1.8], there exists a unique polynomial \(h_M(t) \in \mathbb {Z}[t]\) such that \(h_M(1)\ne 0\) and \({\text {Hilb}}_M(t) =h_M(t)/(1-t)^d\). The polynomial \(h_M(t)\) is called the h-polynomial of M.

In this section, we give a sufficient condition for Conjecture 1.2 to be true. We prove that Conjecture 1.2 holds if \(S/J_G\) admits a unique extremal Betti number. In [29], Schenzel and Zafar proved that complete bipartite graphs have unique extremal Betti number. Zafar and Zahid proved that the n-cycle, \(C_n\), has a unique extremal Betti number, see [30]. In [10], Herzog and Rinaldo characterized block graphs which admit unique extremal Betti number. In [16], we have characterized generalized block graphs which admit unique extremal Betti number.

Theorem 5.1

Let G be a connected graph on [n]. If \(S/J_G\) admits a unique extremal Betti number, then \(\mathrm {reg}(S/J_G) \le \deg h_{S/J_G}(t)\).

Proof

Set \(p={\text {pd}}(S/J_G)\) and \(r=\mathrm {reg}(S/J_G)\). If G is not a complete graph, then by [1, Theorem B], \(p \ge n+\kappa (G)-2\), where \(\kappa (G)\) is the vertex connectivity of G. If G is a complete graph, then \(p =n-1\). Note that for any connected graph G if \(G \ne K_n\), then \(\kappa (G) \ge 1\). Therefore, for any connected graph G, \( p \ge n-1\). Also, it follows from [9, Corollary 3.3] that \(\dim (S/J_G) \ge n+1\). Now, by [2, Corollary 4.1.14],

$$\begin{aligned} \underset{i,j}{\sum }(-1)^i \beta _{i,j}^S(S/J_G)t^j =h_{S/J_G}(t)(1-t)^{2n-d}, \end{aligned}$$

where \(d=\dim (S/J_G)\). Since \(S/J_G\) has the unique extremal Betti number \(\beta _{p,p+r}^S(S/J_G)\), we get \(p+r =2 n-d + \deg h_{S/J_G}(t)\). Hence, the assertion follows. \(\square \)

It is natural to ask if Conjecture 1.2 is true when \(S/J_G\) has more than one extremal Betti numbers. Here is one instance when \(S/J_G\) has two extremal Betti number and Conjecture  1.2 is true. A flower graph \(F_{h,k}(v)\) is a connected graph obtained by identifying a free vertex as v, each of h copies of the complete graph \(K_3\) and k copies of the star graph \(K_{1,3}\) with \(h +k \ge 3\). The flower graph was introduced by Mascia and Rinaldo in [18]. It follows from [18, Theorem 3.4] that \(F_{h,k}(v)\) has two extremal Betti numbers.

Theorem 5.2

Let \(G=F_{h,k}(v)\) be a flower graph. Then, \(\mathrm {reg}(S/J_G) \le \deg h_{S/J_G}(t)\).

Proof

It follows from [2, Corollary 4.1.14] that

$$\begin{aligned} \underset{i,j}{\sum }(-1)^i \beta _{i,j}(S/J_G)t^j =h_{S/J_G}(t)(1-t)^{2n-d}, \end{aligned}$$

where \(d =\dim (S/J_G)\). By [18, Theorem 3.4], the degree of the polynomial on the left hand side of the above equation is \(n+{\text {iv}}(G)\). Therefore, by comparing the degree, we get \(n+{\text {iv}}(G) =2n-d + \deg h_{S/J_G}(t)\). It follows from [18, Corollary 3.5] that \(\mathrm {reg}(S/J_G)={\text {iv}}(G)+{\text {cdeg}}(v)-1 =n -d+\deg h_{S/J_G}(t)+{\text {cdeg}}(v)-1\). Let \(T=\{v\}\). Note that, \(c_G(T) = {\text {cdeg}}(v)\). By [9, Corollary 3.3], \(d \ge n+{\text {cdeg}}(v)-1\). Thus, we get \(\mathrm {reg}(S/J_G) \le \deg h_{S/J_G}(t)\). \(\square \)

Now, we provide a counterexample to Hibi–Matsuda conjecture. In [14], Kahle and Krüsemann gave a counterexample to Hibi–Matsuda conjecture. However, one can observe that the counterexample given in [14] is not a chordal graph. Here, we provide a counterexample which is a block graph and hence, a chordal graph.

Example 5.3

The following graph is a counterexample to Hibi–Matsuda Conjecture.

figure d

It follows from [18, Theorem 4.2] that \(\mathrm {reg}(S/J_G) =6\). We computed the Hilbert series of \(S/J_G\) using Macaulay 2 package [8]:

$$\begin{aligned} {\text {Hilb}}_{S/J_G}(t)=\dfrac{1+10t+38t^2+60t^3+19t^4-24t^5}{(1-t)^{18}}. \end{aligned}$$

The polynomial \(h_{S/J_G}(t)=1+10t+38t^2+60t^3+19t^4-24t^5\) is the h-polynomial of \(S/J_G\) and \(\deg h_{S/J_G}(t) =5<\mathrm {reg}(S/J_G)\). Let \(G_1,\ldots ,G_k\) be k copies of the graph G. The graph \(G^k\) is obtained by identifying a free vertex of \(G_i\) with a free vertex of \(G_{i+1}\), i.e., \(G^k=G_1 \cup \cdots \cup G_k\), \(V(G_i) \cap V(G_{j})=\emptyset \), if \(j \notin \{i-1,i+1\}\) and \(V(G^i) \cap V(G^{i+1})=\{u_i\}\), where \(u_i\) is a free vertex of \(G^i\) and \(G^{i+1}\). Then, it follows from [13, Theorem 3.1] that \(\mathrm {reg}(S_k/J_{G^k})=6k\), where \(S_k =K[x_i,y_i: i \in V(G^k)]\). Also, by [17, Corollary 3.3], \(\deg h_{S_k/J_{G^k}}(t) =5k\). This shows that for any positive integer k, there is a graph \(G^k\) such that \(\mathrm {reg}(S_k/J_{G^k})-\deg h_{S_k/J_{G^k}}(t) =k\).

In [3], de Alba and Hoang asked whether the initial ideal of the binomial edge ideal of a closed graph admits a unique extremal Betti number, (see [3, Question 1]). Recently, in [28], Saeedi Madani and Kiani gave a negative answer to the above question, (see [28, Theorem 4.6]). We end this article by asking the following question.

Question 5.4

When does the binomial edge ideal of a graph admit a unique extremal Betti number?