1 Introduction

When one studies empirical graphs, one of the most obvious and basic properties to investigate is the presence and number of triangles, that is, connected triples of vertices. In bipartite graphs, for instance, there are no triangles, whereas in a complete graph, every triple of vertices constitutes a triangle. A basic observation then is that when two neighboring vertices are contained in a triangle, their neighborhoods of radius 1 (let us assign to every edge the length 1 for the discussion in this introduction) share the third vertex of the triangle. That is, the more triangles those two neighboring vertices are contained in, the larger the overlap of their neighborhoods. This suggests an analogy with the notion of Ricci curvature in Riemannian geometry where a lower bound on the Ricci curvature also controls the amount of overlaps of distance balls from below. This is what we are going to explore in a quantitative manner in this paper.

In fact, Ricci curvature is a fundamental concept in Riemannian geometry, see e.g. [18]. It is a quantity computed from second derivatives of the metric tensor. It controls how fast geodesics starting at the same point diverge on average. Equivalently, it controls how fast the volume of distance balls grows as a function of the radius. As already indicated, it also controls the amount of overlap of two distance balls in terms of their radii and the distance between their centers. In fact, such lower bounds follow from a lower bound on the Ricci curvature. It was then natural to look for generalizations of such phenomena on metric spaces more general than Riemannian manifolds. That is, the question to find substitutes for the lower bounds on the above mentioned second derivative combinations of the metric tensor that yield the same geometric control on a general metric space. By now, there exist several insightful definitions of synthetic Ricci curvature on general metric measure spaces, see Sturm [29, 30], Lott–Villani [22], Ohta [23], Ollivier [24] etc.

As indicated, in this paper, we want to explore the implications of such ideas in graph theory. The geometric idea is that a lower Ricci curvature bound prevents geodesics from diverging too fast and balls from growing too fast in volume. On a graph, the analogue of geodesics starting in different directions, but eventually approaching each other again, would be a triangle. Therefore, it is natural that the Ricci curvature on a graph should be related to the relative abundance of triangles. The latter is captured by the local clustering coefficient introduced by Watts–Strogatz [33]. Thus, the intuition of Ricci curvature on a graph should play with the relative frequency of triangles a vertex shares with its neighbors. In fact, more precisely, since the local clustering coefficient averages over the neighbors of a vertex, this should really related to some notion of scalar curvature, as an average of Ricci curvatures in different directions, that is, for different neighbors of a given vertex.

Among the several definitions of generalized Ricci curvature in the literature mentioned above, the one of Ollivier works particularly well on discrete spaces like graphs. It is formulated in terms of the transportation distance between local measures:

$$ \kappa(x, y):=1-W_1(m_x, m_y), $$
(1.1)

where x,y are vertices in our graph that are neighbors (written as xy) and the measure \(m_{x}=\frac{1}{d_{x}}\), where d x is the degree of x, puts equal weight on all neighbors. W 1(m x ,m y ) is the transportation distance between the two measures m x and m y (defined more precisely below). When two balls strongly overlap, as is the case in Riemannian geometry when the Ricci curvature has a large lower bound, then it is easier to transport the mass of one to the other. Analogously, in the graph case, when the two vertices share many triangles, then the transportation distance should be smaller, and the curvature therefore correspondingly larger. This is the idea of Ollivier’s definition as we see it and explore in this paper. We shall obtain both upper and lower bounds for Ollivier’s Ricci curvature on graphs in Sect. 3, which are optimal on many graphs.

Let us now formulate our main result (recalled and proved below as Theorem 3).

Theorem 1

On a locally finite graph, we put for any pair of neighboring vertices x,y,

$$\sharp(x,y):=\textit{number of triangles which include } x, y \textit{ as vertices}=\sum_{x_1, x_1\sim x, x_1\sim y}1. $$

We then have

$$\begin{aligned} \kappa(x,y) \geq&- \biggl(1-\frac{1}{d_x}-\frac{1}{d_y}- \frac{\sharp (x,y)}{d_x\wedge d_y} \biggr)_+- \biggl(1-\frac{1}{d_x}-\frac{1}{d_y}- \frac {\sharp(x,y)}{d_x\vee d_y} \biggr)_+ \\ &{}+\frac{\sharp(x,y)}{d_x\vee d_y}. \end{aligned}$$
(1.2)

where s +:=max(s,0),st:=max(s,t),st:=min(s,t).

This equality is sharp for instance for a complete graph of n vertices where the left and the right hand side both equal to \(\frac{n-2}{n-1}\).

The local clustering coefficient introduced by Watts–Strogatz [33] is

$$ c(x):=\frac{\mathrm{number\ of\ edges\ between\ neighbors\ of\ } x}{\mathrm{number\ of\ possible\ existing\ edges\ between\ neighbors\ of\ } x}, $$
(1.3)

which measures the extent to which neighbors of x are directly connected, i.e.,

$$ c(x)=\frac{1}{d_x(d_x-1)}\sum_{y, y\sim x} \sharp(x, y). $$
(1.4)

Thus, this local clustering coefficient is an average over the ♯(x,y) for the neighbors of x. Thus, we might also introduce some kind of scalar curvature (suggested in Problem Q in Ollivier [25]) as

$$ \kappa(x):= \frac{1}{d_x}\sum_{y, y\sim x} \kappa(x,y). $$
(1.5)

For illustration, let us consider the case where our graph is d-regular, that is, d z =d for all vertices z. When \(1\ge\frac{2}{d}+\frac{\sharp(x,y)}{d}\) for all yx, we would then get

$$ \kappa(x)\ge-2 +\frac{4}{d} + \frac{3(d-1)}{d}c(x). $$
(1.6)

This example nicely illustrates the relation between Ollivier’s curvature and the Watts–Strogatz clustering coefficient.

Without the triangle terms ♯(x,y) (which is the crucial term for our purposes), Theorem 1 is due to Lin–Yau [19, 21], and we take their proof as our starting point. Lin–Yau also obtain analogues of Bochner type inequalities and eigenvalue estimates as known from Riemannian geometry.

In Riemannian geometry, the Bochner formula encodes deep analytic properties of Ricci curvature. It is a key ingredient in proving many results, e.g. the spectral gap of the Laplace–Beltrami operator. A lower bound of the Ricci curvature implies a curvature-dimension inequality involving the Laplace–Beltrami operator through the Bochner formula. In an important work, Bakry and Émery [2, 3] generalize this inequality to generators of Markov semigroups, which works on measure spaces. Their inequality contains plentiful information and implies a lot of functional inequalities including spectral gap inequalities, Sobolev inequalities, and logarithmic Sobolev inequalities and many celebrated geometric theorems (see [1] and the references therein). Lin–Yau [21] study such inequalities on locally finite graphs.

In the present paper, we also want to find relations on locally finite graphs between Ollivier’s Ricci curvature and Bakry–Émery’s curvature-dimension inequalities, which represent the geometric and analytic aspects of graphs, respectively. Again, this is inspired by Riemannian geometry where one may attach a Brownian motion with a drift to a Riemannian metric [24]. We also mention that the definitions given by Sturm and Lott–Villani are also consistent with that of Bakry–Émery [22, 29, 30]. So exploring the relations on nonsmooth spaces may provide a good point of view to connect Ollivier’s definition to Sturm and Lott–Villani’s (in this respect, see also Ollivier–Villani [26]). In Sect. 4, we use the local clustering coefficient again to establish more precise curvature-dimension inequalities than those of Lin–Yau [21]. And with this in hand, we prove curvature-dimension inequalities under the condition that Ollivier’s Ricci curvature of the graph is positive.

Further analytical results following from curvature-dimension inequalities on finite graphs have been described in [19], and Lin–Lu–Yau [20] study a modified definition of Ollivier’s Ricci curvature on graphs. Recently, Paeng [27] studied upper bounds for the diameter and volume of finite simple graphs in terms of Ollivier’s Ricci curvature. For other works of synthetic Ricci curvatures on discrete spaces, see Dodziuk–Karp [14], Chung–Yau [9], Bonciocat–Sturm [7], and on cell complexes see Forman [17], Stone [28] etc.

We point out that, as in Riemannian geometry, both Ollivier’s Ricci curvature and Bakry–Émery’s curvature-dimension inequality can give lower bound estimates of the first eigenvalue λ 1 for the Laplace operator (see Ollivier [24], Bakry [1]). Therefore our results in fact relate λ 1 to the Watts–Strogatz local clustering coefficient, or the number of cycles with length 3. In [10], Diaconis and Stroock obtain several geometric bounds for eigenvalues of graphs, one of which is related to the number of odd length cycles. For more geometric quantities and methods concerning eigenvalue estimates in the study of Markov chains, see [1113] and the references therein. We further explore the interaction between Ollivier’s Ricci curvature and eigenvalues estimates in joint work with Frank Bauer, see [6].

In this paper, G=(V,E) will denote an undirected connected simple graph without loops, where V is the set of vertices and E is the set of edges. V could be an infinite set. But we require that G is locally finite, i.e., for every xV, the number of edges connected to x is finite. For simplicity and in order to see more geometry, we mainly work on unweighted graphs. But we will also derive similar results on weighted graphs. In that case, we denote by w xy the weight associated to x,yV, where xy (we may simply put w xy =0 if x and y are not neighbors, to simplify the notation). The unweighted case corresponds to w xy =1 whenever xy. The degree of xV is d x =∑ y,yx w xy .

2 Ollivier’s Ricci Curvature and Bakry–Émery’s Calculus

In this section, we present some basic facts about Ollivier’s Ricci curvature and Bakry–Emery’s Γ 2 calculus, in particular on graphs.

2.1 Ollivier’s Ricci Curvature

Ollivier’s Ricci curvature works on a general metric space (X,d), on which we attach to each point xX a probability measure m x (⋅). We denote this structure by (X,d,m).

For a locally finite graph G=(V,E), we define the metric d as follows. For neighbors x,y, d(x,y)=1. For general distinct vertices x,y, d(x,y) is the length of the shortest path connecting x and y, i.e. the number of edges of the path. We attach to each vertices xV a probability measure

$$ m_x(y)=\left \{ \begin{array}{l@{\quad}l} \frac{w_{xy}}{d_x}, & \hbox{if $y \sim x$;} \\ 0, & \hbox{otherwise.} \end{array} \right . $$
(2.1)

An intuitive illustration of this is a random walker that sits at x and then chooses amongst the neighbors of x with equal probability \(\frac{1}{d_{x}}\).

Definition 1

(Ollivier)

On (X,d,m), for any two distinct points x,yX, the (Ollivier–) Ricci curvature of (X,d,m) along (xy) is defined as

$$ \kappa(x, y):=1-\frac{W_1(m_x, m_y)}{d(x, y)}. $$
(2.2)

Here, W 1(m x ,m y ) is the optimal transportation distance between the two probability measures m x and m y , defined as follows (cf. Villani [31, 32], Evans [16]).

Definition 2

For two probability measures μ 1, μ 2 on a metric space (X,d), the transportation distance between them is defined as

$$ W_1(\mu_1, \mu_2):= \inf _{\xi\in\prod(\mu_1, \mu_2)} \int_{X\times X}d(x,y)\,d \xi(x,y), $$
(2.3)

where ∏(μ 1,μ 2) is the set of probability measures on X×X projecting to μ 1 and μ 2.

In other words, ξ satisfies

$$ \xi(A\times X)=\mu_1(A),\quad\quad \xi(X\times B)=\mu_2(B),\quad \forall A, B\subset X. $$

Remark 1

Intuitively, this distance measures the optimal cost to move one pile of sand to another one with the same mass. For case of a graph G=(G,d,m), the supports of m x and m y are finite discrete sets, and thus, ξ is just a matrix with terms ξ(x′,y′) representing the mass moving from x′∈support of m x to y′∈support of m y . That is, in this case,

$$W_1(m_x, m_y)=\inf_{\xi} \sum_{x', x'\sim x}\sum_{y', y'\sim y}d \bigl(x', y'\bigr)\xi\bigl(x', y'\bigr), $$

where the infimum is taken over all matrices ξ which satisfy

$$\sum_{x', x'\sim x}\xi\bigl(x', y' \bigr)=\frac{w_{yy'}}{d_y},\quad\quad\sum_{y', y'\sim y}\xi \bigl(x', y'\bigr)=\frac{w_{xx'}}{d_x}. $$

We also call ξ a transfer plan. If we can find a particular transfer plan, we then get an upper bound for W 1 and therefore a lower bound for κ.

A very important property of transportation distance is the Kantorovich duality (see, e.g. Theorem 1.14 in Villani [31]). We state it here in our particular graph setting.

Proposition 1

(Kantorovich Duality)

$$W_1(m_x, m_y)=\sup_{f, 1-\mathrm{Lip}} \biggl[\sum_{z, z\sim x} f(z) m_x(z)-\sum _{z, z\sim y} f(z)dm_y(z) \biggr], $$

where the supremum is taken over all functions on G that satisfy

$$\big|f(x)-f(y)\big|\leq d(x, y), $$

for any x,yV, xy.

From this property, a good choice of a 1-Lipschitz function f will yield a lower bound for W 1 and therefore an upper bound for κ.

Remark 2

We list some basic first observations about this curvature concept (see Ollivier [24]):

  • κ(x,y)≤1.

  • Rewriting (2.2) gives W 1(m x ,m y )=d(x,y)(1−κ(x,y)), which is analogous to the expansion in the Riemannian case.

  • A lower bound κ(x,y)≥k for any x,yX implies

    $$ W_1(m_x, m_y)\leq(1-k)d(x,y), $$
    (2.4)

    which can be seen as some kind of Lipschitz continuity of measures.

2.2 Bakry–Émery’s Curvature-Dimension Inequality

2.2.1 Laplace Operator

We will study the following operator which is an analogue of the Laplace–Beltrami operator in Riemannian geometry.

Definition 3

The Laplace operator on (X,d,m) is defined as follows:

$$ \Delta f(x)=\int_X f(y)\,dm_x(y)-f(x), \quad\text{for functions } f: X\longrightarrow R. $$
(2.5)

For our choice of {m x (⋅)}, this is the graph Laplacian studied by many authors, see e.g. [4, 5, 8, 14, 21].

2.2.2 Bochner Formula and Curvature-Dimension Inequality

In the Riemannian case, many analytical consequences of a lower bound of the Ricci curvature are obtained through the well-known Bochner formula,

$$\frac{1}{2}\Delta\bigl(|\nabla f|^2\bigr)=| \operatorname{Hess} f|^2+\bigl\langle \nabla(\Delta f),\nabla f\bigr\rangle +\operatorname{Ric}(\nabla f, \nabla f). $$

Analytically, \(|\operatorname{Hess} f|^{2}\) is difficult to define on a nonsmooth space. But using Schwarz’s inequality, we have

$$|\operatorname{Hess} f|^2\geq\frac{(\Delta f)^2}{m}, $$

where m is the dimension constant. So we can use

$$ \frac{1}{2}\Delta\bigl(|\nabla f|^2\bigr)\geq \frac{(\Delta f)^2}{m}+\bigl\langle \nabla (\Delta f),\nabla f\bigr\rangle +K|\nabla f|^2 $$
(2.6)

to characterize \(\operatorname{Ric} \geq K\).

Bakry–Émery [13] take this inequality as the starting point and directly use the operators to define curvature bounds. Starting from an operator Δ, they define iteratively,

$$\begin{aligned} \varGamma_0(f, g)&=fg, \\ \varGamma(f, g)&=\frac{1}{2}\bigl\{ \Delta\varGamma_0(f, g)- \varGamma_0(f, \Delta g)-\varGamma_0(\Delta f, g)\bigr\} , \\ \varGamma_2(f, g)&=\frac{1}{2}\bigl\{ \Delta \varGamma(f, g)-\varGamma(f, \Delta g)-\varGamma(\Delta f, g)\bigr\} . \end{aligned}$$

In fact, Γ(f,f) is an analogue of |∇f|2, and Γ 2(f,f) is an analogue of \(\frac{1}{2}\Delta|\nabla f|^{2}-\langle\nabla (\Delta f), \nabla f\rangle\) in (2.6).

Definition 4

We say an operator Δ satisfies a curvature-dimension inequality \(\operatorname{CD}(m, K) \) if for all functions f in the domain of the operator

$$ \varGamma_2(f, f) (x)\geq\frac{1}{m}\bigl(\Delta f(x) \bigr)^2+K(x)\varGamma(f, f) (x), \quad\forall x\in X, $$
(2.7)

where m∈[1,+∞] is the dimension parameter, K(x) is the curvature function.

As studied in Lin–Yau [21], applying this construction to the operator (2.5) gives

$$\begin{aligned} \varGamma(f, f) (x)&=\frac{1}{2}\int_X \bigl(f(y)-f(x)\bigr)^2\,dm_x(y). \end{aligned}$$
(2.8)

In fact generally

$$ \varGamma(f, g) (x)=\frac{1}{2}\int_X \bigl(f(y)-f(x)\bigr) \bigl(g(y)-g(x)\bigr)\,dm_x(y). $$

For the sake of convenience, we will denote

$$\operatorname{Hf}(x):=\frac{1}{4}\int_X\int_X \bigl(f(x)-2f(y)+f(z)\bigr)^2\,dm_y(z) \,dm_x(y). $$

By the calculation in Lin–Yau [21] we get

$$\begin{aligned} \Delta\varGamma(f, f) (x)&=2\operatorname{Hf}(x)\\&\quad\ {}-\int_X\int _X\bigl(f(x)-2f(y)+f(z)\bigr) \bigl(f(x)-f(y)\bigr) \,dm_y(z)\,dm_x(y), \\ 2\varGamma(f, \Delta f) (x)&=-\bigl(\Delta f(x)\bigr)^2\\&\quad\ {}-\int _X\int_X\bigl(f(z)-f(y)\bigr) \bigl(f(x)-f(y)\bigr)\,dm_y(z)\,dm_x(y), \end{aligned}$$

and then,

$$ \varGamma_2(f, f)=\operatorname{Hf}(x)-\varGamma(f, f) (x)+ \frac{1}{2}\bigl(\Delta f(x)\bigr)^2. $$
(2.9)

3 Ollivier’s Ricci Curvature and Triangles

In this section, we mainly prove lower bounds for Ollivier’s Ricci curvauture on locally finite graphs. In particular we shall explore the implication between lower bounds of the curvature and the number of triangles including neighboring vertices; the latter is encoded in the local clustering coefficient. We remark that we only need to bound κ(x,y) from below for neighboring x,y, since by the triangle inequality of W 1, this will also be a lower bound for κ(x,y) of any pair of x,y. (See Proposition 19 in Ollivier [24].)

3.1 Unweighted Graphs

In this subsection, we only consider unweighted graphs.

In Lin–Yau [21], they prove a lower bound of Ollivier’s Ricci curvature on locally finite graphs G. Here, for later purposes, we include the case where G may have vertices of degree 1 and get the following modified result.

Theorem 2

On a locally finite graph G=(V,E), we have for any pair of neighboring vertices x,y,

$$ \kappa(x,y)\geq-2 \biggl(1-\frac{1}{d_x}-\frac{1}{d_y} \biggr)_+=\left \{ \begin{array}{l@{\quad}l} -2+\frac{2}{d_x}+\frac{2}{d_y}, & \textit{if $d_{x}>1$ and $d_{y}>1$}; \\ 0, & \textit{otherwise.} \end{array} \right . $$

Remark 3

Notice that if d x =1, then we can calculate κ(x,y)=0 exactly. So, even though in this case \(-2+\frac{2}{d_{x}}=0\), \(\kappa(x, y)\geq\frac{2}{d_{y}}\) does not hold.

For completeness, we state the proof of Theorem 2 here. It is essentially the one in Lin–Yau [21] with a small modification.

Proof of Theorem 2

Since d(x,y)=1 for xy, we have

$$ \kappa(x,y)=1-W_1(m_x, m_y). $$
(3.1)

Using Kantorovich duality, we get

$$\begin{aligned} W_1(m_x, m_y)&=\sup_{f, 1-\mathrm{Lip}} \biggl(\frac{1}{d_x}\sum_{z, z\sim x}f(z)- \frac{1}{d_y}\sum_{z', z'\sim y}f\bigl(z' \bigr) \biggr) \\ &=\sup_{f, 1-\mathrm{Lip}} \biggl(\frac{1}{d_x}\sum _{z, z\sim x, z \neq y}\bigl(f(z)-f(x)\bigr)-\frac{1}{d_y}\sum _{z', z'\sim y, z'\neq x}\bigl(f\bigl(z'\bigr)-f(y)\bigr) \\ &\quad\ {}+\frac{1}{d_x}\bigl(f(y)-f(x)\bigr)-\frac {1}{d_y}\bigl(f(x)-f(y)\bigr)+ \bigl(f(x)-f(y)\bigr) \biggr) \\ &\leq\frac{d_x-1}{d_x}+\frac{d_y-1}{d_y}+\biggl\vert 1-\frac {1}{d_x}- \frac{1}{d_y}\biggr\vert \\ &=2-\frac{1}{d_x}-\frac{1}{d_y}+\biggl\vert 1-\frac{1}{d_x}- \frac {1}{d_y}\biggr\vert \\ &=1+2 \biggl(1-\frac{1}{d_x}-\frac{1}{d_y} \biggr)_+. \end{aligned}$$
(3.2)

Inserting the above estimate into (3.1) gives

$$\begin{aligned} \kappa(x, y)&\geq-2 \biggl(1-\frac{1}{d_x}-\frac{1}{d_y} \biggr)_+. \end{aligned}$$

 □

Note that trees attain this lower bound. This coincides with the geometric intuition of curvature. Since trees have the fastest volume growth rate, it is plausible that they have the smallest curvature.

Proposition 2

We consider a tree T=(V,E). Then for any neighboring x,y, we have

$$ \kappa(x,y)=-2 \biggl(1-\frac{1}{d_x}-\frac{1}{d_y} \biggr)_+. $$
(3.3)

Proof

In fact with Theorem 2 in hand, we only need to prove that \(1+2 (1-\frac{1}{d_{x}}-\frac{1}{d_{y}} )_{+}\) is also a lower bound of W 1. If one of x,y is a vertex of degree 1, say d x =1, it is obvious that W 1(m x ,m y )=1. So we only need to deal with the case \(1-\frac{1}{d_{x}}-\frac{1}{d_{y}}\geq0\).

We can find a 1-Lipschitz function f on a tree as follows.

$$ f(z)=\left \{ \begin{array}{l@{\quad}l} 0, & \hbox{if $z\sim y, z\neq x$;} \\ 1, & \hbox{if $z=y$;} \\ 2, & \hbox{if $z=x$;} \\ 3, & \hbox{if $z\sim x, z\neq x$.} \end{array} \right . $$
(3.4)

Since on a tree, the path joining two vertices are unique, there is no further path between neighbors of x and y. So this can be easily extended to a 1-Lipschitz function on the whole graph. Then by Kantorovich duality, we have

$$\begin{aligned} W_1(m_x, m_y)&\geq\frac{1}{d_x} \bigl(3(d_x-1)+1\bigr)-\frac{1}{d_y}\cdot 2 \\ &=3-\frac{2}{d_x}-\frac{2}{d_y}. \end{aligned}$$
(3.5)

This completes the proof. □

In order to make clear the geometric meaning of the term \((1-\frac{1}{d_{x}}-\frac{1}{d_{y}} )_{+}\), and also to prepare the idea used in the next theorem, we give another method to get the upper bound of W 1. That works through a particular transfer plan. If

$$1-\frac{1}{d_x}-\frac{1}{d_y}\geq0, \quad\text{or}\quad 1- \frac {1}{d_y}\geq\frac{1}{d_x}, $$

then for m y , the mass at all z such that zy, zx is larger than that of m x at y. So we can move the mass \(\frac {1}{d_{x}}\) at y to z, zy, zx for distance 1. Symmetrically, we can move a mass of \(\frac{1}{d_{y}}\) at the vertices z which satisfy zx, zy to x for distance 1. The remaining mass of \((1-\frac{1}{d_{x}}-\frac{1}{d_{y}} )\) needs to be moved for distance 3. This gives

$$\begin{aligned} W_1(m_x, m_y)&\leq \biggl(\frac{1}{d_x}+ \frac{1}{d_y} \biggr)\times 1+ \biggl(1-\frac{1}{d_x}-\frac{1}{d_y} \biggr)\times3 \\ &=3-\frac {2}{d_x}-\frac{2}{d_y}. \end{aligned}$$
(3.6)

If

$$1-\frac{1}{d_x}-\frac{1}{d_y}\leq0, $$

we only need to move the mass of m x for distance 1 to the support of m y . So we have in this case W 1(m x ,m y )=1. This gives the same upper bound as in (3.2).

From the view of transfer plans, the existence of triangles including neighboring vertices would save a lot of transport costs and therefore affect the curvature heavily. We denote for xy,

$$\sharp(x,y):=\text{number of triangles which include } x, y \text{ as vertices}=\sum_{x_1, x_1\sim x, x_1\sim y}1. $$

Remark 4

This quantity ♯(x,y) is related to the local clustering coefficient introduced by Watts–Strogatz [33],

$$ c(x):=\frac{\mathrm{number\ of\ edges\ between\ neighbors\ of\ } x}{\mathrm{number\ of\ possible\ existing\ edges\ between\ neighbors\ of\ } x}, $$

which measures the extent to which neighbors of x are directly connected. In fact, we have the relation

$$ c(x)=\frac{1}{d_x(d_x-1)}\sum_{y, y\sim x} \sharp(x, y). $$
(3.7)

We will explore the relation between the curvature κ(x,y) and the number of triangles ♯(x,y). A critical observation is that κ(x,y) is symmetric w.r.t. x and y. So we try to express the curvature through symmetric quantities:

$$d_x\wedge d_y:=\min\{d_x, d_y\}, \quad\quad d_x\vee d_y:=\max\{d_x, d_y \}. $$

Theorem 3

On a locally finite graph G=(V,E), we have for any pair of neighboring vertices x,y,

$$ \kappa(x,y)\geq- \biggl(1-\frac{1}{d_x}-\frac{1}{d_y}-\frac{\sharp (x,y)}{d_x\wedge d_y} \biggr)_+- \biggl(1-\frac{1}{d_x}-\frac{1}{d_y}-\frac {\sharp(x,y)}{d_x\vee d_y} \biggr)_++\frac{\sharp(x,y)}{d_x\vee d_y}. $$

Moreover, this inequality is sharp for certain graphs.

Remark 5

If ♯(x,y)=0, then this lower bound reduces to the one in Theorem 2.

Example 1

On a complete graph \(\mathcal{K}_{n}\) (n≥2) with n vertices, ♯(x,y)=n−2 for any x,y. So Theorem 3 implies

$$\kappa(x, y)\geq\frac{n-2}{n-1}. $$

In fact, we can easily check that the above inequality is an equality. Also notice that on those graphs, the local clustering coefficient c(x)=1 attains the largest value.

Before carrying out the proof of Theorem 3, we fix some notations. The vertices z that are adjacent to x or y, where xy, are divided into three classes.

  • common neighbors of x,y: zx and zy:

  • x’s own neighbors: zx,zy,zy;

  • y’s own neighbors: zy,zx,zx.

Proof of Theorem 3

We suppose w.l.o.g.,

$$d_x=d_x\vee d_y,\quad\quad d_y=d_x \wedge d_y. $$

In principle, our transfer plan moving m x to m y should be as follows.

  1. 1.

    Move the mass of \(\frac{1}{d_{x}}\) from y to y’s own neighbors;

  2. 2.

    Move a mass of \(\frac{1}{d_{y}}\) from x’s own neighbors to x;

  3. 3.

    Fill gaps using the mass at x’s own neighbors. Filling the gaps at common neighbors costs 2 and the one at y’s own neighbors costs 3.

A critical point will be whether (1) and (2) can be realized or not. It is easy to see that we can realize step (1) if and only if

$$ 1-\frac{1}{d_y}-\frac{\sharp(x, y)}{d_y}\geq\frac{1}{d_x},\quad\text{or}\quad A:=1-\frac{1}{d_x}-\frac{1}{d_y}-\frac{\sharp(x, y)}{d_x\wedge d_y}\geq0. $$
(3.8)

That is, after taking off the mass at x and common neighbors, m y still has at least a mass of \(\frac{1}{d_{x}}\). Step (2) can be realized if and only if

$$ 1-\frac{1}{d_x}-\frac{\sharp(x, y)}{d_x}\geq\frac{1}{d_y},\quad\text{or}\quad B:=1-\frac{1}{d_x}-\frac{1}{d_y}-\frac{\sharp(x, y)}{d_x\vee d_y}\geq0. $$
(3.9)

That is, after taking off the mass at y and common neighbors, m x still has enough mass to fill \(\frac{1}{d_{y}}\). Obviously, AB.

We will divide the discussion into three cases according to whether the first two steps can be realized or not.

• 0≤AB. This means we can adopt the above transfer plan. By definition of W 1(m x ,m y ), we get

$$\begin{aligned} W_1(m_x, m_y)&\leq \frac{1}{d_x}\times1+ \frac{1}{d_y}\times1+ \biggl(\frac{1}{d_y}-\frac{1}{d_x} \biggr)\times \sharp(x, y)\times2 \\ &\quad\ {}+ \biggl[1-\frac{1}{d_x}-\frac{1}{d_y}- \biggl(\frac{1}{d_y}- \frac{1}{d_x} \biggr)\times\sharp(x, y)-\frac{1}{d_x}\sharp(x, y) \biggr] \times3 \\ &=3-\frac {2}{d_x}-\frac{2}{d_y}-\frac{\sharp(x, y)}{d_y}-\frac{2\sharp(x, y)}{d_x}. \end{aligned}$$

Or in a symmetric way,

$$ W_1(m_x, m_y)\leq3-\frac{2}{d_x\vee d_y}- \frac{2}{d_x\wedge d_y}-\frac {\sharp(x, y)}{d_x\wedge d_y}-\frac{2\sharp(x, y)}{d_x\vee d_y}. $$
(3.10)

Moreover, in this case the following function f (as shown in Fig. 1) can be extended as a 1-Lipschitz function:

$$ f(z)=\left \{ \begin{array}{l@{\quad}l} 0, & \hbox{at $y$'s own neighbors;}\\ 1, & \hbox{at $y$ or common neighbors;}\\ 2, & \hbox{at $x$;}\\ 3, & \hbox{at $x$'s own neighbor,} \end{array} \right . $$

(that is, if there are no paths of length 1 between common neighbors and x’s own neighbors, nor paths of length 1 or 2 between x’s own neighbors and y’s own ones) we have by Kantorovich duality

$$\begin{aligned} W_1(m_x, m_y)&\geq \frac{1}{d_x} \bigl[f(y)+3\bigl(d_x-1-\sharp(x, y)\bigr)+\sharp(x, y)\bigr]- \frac{1}{d_y}\bigl(f(x)+\sharp(x, y)\bigr) \\ &=3-\frac{2}{d_x}-\frac{2}{d_y}-\frac{\sharp(x, y)}{d_y}-\frac{2\sharp (x, y)}{d_x}. \end{aligned}$$

That is, in this case, (3.10) should be an equality. In conclusion,

$$\kappa(x, y)\geq-2+\frac{2}{d_x}+\frac{2}{d_y}+\frac{\sharp(x, y)}{d_x\wedge d_y}+ \frac{2\sharp(x, y)}{d_x\vee d_y}, $$

and the “=” can be attained.

Fig. 1
figure 1

Mass moved from vertices with larger value to those with smaller ones

Remark 6

A≥0 is equivalent to

$$ d_x\wedge d_y>1,\quad\text{and}\quad\sharp(x, y)\leq d_x\wedge d_y-1-\frac{d_x\wedge d_y}{d_x\vee d_y}. $$

Since ♯(x,y)∈Z, we know that d x d y ≥2 and ♯(x,y)≤d x d y −2. This means both x and y have at least one own neighbor.

If A<0, we get

$$d_x\wedge d_y-1-\frac{d_x\wedge d_y}{d_x\vee d_y}< \sharp(x, y)\leq d_x\wedge d_y-1. $$

I.e., ♯(x,y)=d x d y −1. This means the vertex with smaller degree has no own neighbors.

• A<0≤B. In this case we cannot realize step (1) but step (2) can be realized. By the above remark, A<0 implies that y has no own neighbors. Our transfer plan should be step (2) at first. Since B≥0 also implies

$$ 1-\frac{1}{d_y}-\frac{\sharp(x, y)}{d_x}\geq\frac{1}{d_x}, $$
(3.11)

so we can move the mass of \(\frac{1}{d_{x}}\) at y for distance 1 to common neighbors. Finally, we fill the gap at common neighbors for distance 2. In a formula,

$$\begin{aligned} W_1(m_x, m_y)&\leq \frac{1}{d_x}\times1+ \frac{1}{d_y}\times1+ \biggl(1-\frac{1}{d_x}-\frac{1}{d_y}- \frac{\sharp(x, y)}{d_x} \biggr)\times2 \\ &= 2-\frac{1}{d_x}-\frac{1}{d_y}-\frac{2\sharp(x, y)}{d_x}. \end{aligned}$$

Or in a symmetric manner,

$$ W_1(m_x, m_y)\leq2-\frac{1}{d_x\vee d_y}- \frac{1}{d_x\wedge d_y}-\frac {2\sharp(x, y)}{d_x\vee d_y}. $$
(3.12)

Moreover, in case the following function f can be extended as a 1-Lipschitz one,

$$ f(z)=\left \{ \begin{array}{l@{\quad}l} 0, & \hbox{at common neighbors;}\\ 1, & \hbox{at $x$ and $y$;}\\ 2, & \hbox{at $x$'s own neighbor,} \end{array} \right . $$

(that is, if there are no paths of length 1 between common neighbors and x’s own neighbors) we have by Kantorovich duality

$$\begin{aligned} W_1(m_x, m_y)&\geq \frac{1}{d_x} \bigl[f(y)+2\bigl(d_x-1-\sharp(x, y)\bigr)\bigr]-\frac {1}{d_y}f(x) \\ &=2-\frac{1}{d_x}-\frac{1}{d_y}-\frac{2\sharp(x, y)}{d_x}. \end{aligned}$$

In conclusion,

$$\kappa(x, y)\geq-1+\frac{1}{d_x}+\frac{1}{d_y}+\frac{2\sharp(x, y)}{d_x\vee d_y}, $$

and the “=” can be attained.

Remark 7

Noting that if ♯(x,y)=d x d y −1 then B≥0 is equivalent to

$$ d_x\vee d_y\geq\frac{d_x\wedge d_y}{d_x\wedge d_y-1}d_x \wedge d_y. $$
(3.13)

In this case, one of d x , d y has no own neighbors, and if the other one has sufficiently many own neighbors, B≥0 will be satisfied.

• AB<0. In this case, neither step (1) nor (2) is applicable. Also, y has no own neighbor, and B<0 implies that we can move all the mass at x’s own neighbors to x at first. And then we move the mass of \(\frac{1}{d_{x}}\) at y for distance 1 to fill the gaps at x and the common neighbors. In a formula,

$$\begin{aligned} W_1(m_x, m_y)\leq \biggl(1- \frac{\sharp(x, y)}{d_x} \biggr)\times 1=1-\frac{\sharp(x, y)}{d_x}. \end{aligned}$$

Or in a symmetric way,

$$ W_1(m_x, m_y)\leq1-\frac{\sharp(x, y)}{d_x\vee d_y}. $$
(3.14)

We can find a 1-Lipschitz function

$$ f(z)=\left \{ \begin{array}{l@{\quad}l} 0, & \hbox{at $x$ and common neighbors;}\\ 1, & \hbox{at $y$ and $x$'s own neighbors.} \end{array} \right . $$

Then by Kantorovich duality

$$\begin{aligned} W_1(m_x, m_y)&\geq \frac{1}{d_x} \bigl(f(y)+d_x-1-\sharp(x, y)\bigr)-\frac {1}{d_y}\times0 \\ &=1-\frac{\sharp(x, y)}{d_x}. \end{aligned}$$

In this case f can be extended to a 1-Lipschitz function on the graph, so we get finally

$$\kappa(x, y)=\frac{\sharp(x, y)}{d_x}. $$

Luckily, we can write those three cases in a uniform formula.  □

Remark 8

From extending f to a 1-Lipschitz function, we see that the paths of length 1 or 2 between neighbors of x and y have an important effect on the curvature. That is, in addition to triangles, quadrangles and pentagons are also related to Ollivier’s Ricci curvature. But polygons with more than five edges do not impact it.

Remark 9

If we see the graph G=(V,E) as a metric measure space (G,d,m), then the term ♯(x,y)/d x d y is exactly m x m y (G):=m x (G)−(m x m y )+(G), i.e. the intersection measure of m x and m y . From a metric view, the vertices x 1 that satisfy x 1x, x 1y constitute the intersection of the unit metric spheres S x (1) and S y (1).

From Theorem 3, we can force the curvature κ(x,y) to be positive by increasing the number ♯(x,y).

Theorem 4

On a locally finite graph G=(V,E), for any neighboring x,y, we have

$$ \kappa(x, y)\leq\frac{\sharp(x, y)}{d_x\vee d_y}. $$
(3.15)

Proof

Since except for the mass at common neighbors which we need not move, the others have to be moved for a distance at least 1, we have

$$W_1(m_x, m_y)\geq \biggl(1- \frac{\sharp(x, y)}{d_x\vee d_y} \biggr)\times1. $$

 □

So if κ(x,y)>0, then ♯(x,y) is at least 1. Moreover, if κ(x,y)≥k>0, we have

$$ \sharp(x, y)\geq\lceil kd_x\vee d_y\rceil, $$
(3.16)

where ⌈a⌉:=min{AZ|Aa}, for aR.

We will denote D(x):=max y,yx d y . By the relation (3.7), we can get immediately

Corollary 1

The scalar curvature at x can be controlled by the local clustering coefficient at x,

$$ \frac{d_x-1}{d_x}c(x)\geq\kappa(x)\geq-2+\frac{d_x-1}{d_x\vee D(x)}c(x). $$

Remark 10

In fact in some special cases, we can get more precise lower bounds:

$$ \kappa(x)\geq \left \{ \begin{array}{l@{\quad}l} -2+\frac{2}{d_x}+\frac{2}{D(x)}+ [\frac{(d_x-1)}{d_x}+\frac {2(d_x-1)}{d_x\vee D(x)} ]c(x), & \hbox{if $A\geq0$ for all $y\sim x$;} \\ -1+\frac{1}{d_x}+\frac{1}{D(x)}+\frac{2(d_x-1)}{d_x\vee D(x)}c(x), & \hbox{if $A<0\leq B$ for all $y\sim x$;} \\ \frac{d_x-1}{d_x\vee D(x)}c(x), & \hbox{if $B<0$ for all $y\sim x$.} \end{array} \right . $$

3.2 Weighted Graphs

The preceding considerations readily extend to weighted graphs.

Theorem 5

On a weighted locally finite graph G=(V,E), we have

$$ \kappa(x, y)\geq-2 \biggl(1-\frac{w_{xy}}{d_x}-\frac{w_{xy}}{d_y} \biggr)_+. $$
(3.17)

Moreover, weighted trees attain this lower bound.

Theorem 6

On a weighted locally finite graph G=(V,E), we have

$$\begin{aligned} \kappa(x, y)&\geq- \biggl(1-\frac{w_{xy}}{d_x}-\frac{w_{xy}}{d_y}-\sum _{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\vee\frac {w_{x_1y}}{d_y} \biggr)_+ \\ &\quad\ {}- \biggl(1-\frac{w_{xy}}{d_x}-\frac{w_{xy}}{d_y}-\sum _{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\wedge\frac{w_{x_1y}}{d_y} \biggr)_+\\ &\quad\ {}+\sum _{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\wedge\frac{w_{x_1y}}{d_y}. \end{aligned}$$

The inequality is sharp for certain graphs.

Remark 11

Notice that the term replacing the number of triangles here satisfies

$$\sum_{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\wedge \frac {w_{x_1y}}{d_y}=m_x\wedge m_y(G). $$

Proof

Similar to the proof of Theorem 3, we need to understand the following two terms:

$$\begin{aligned} A_w&:=1-\frac{w_{xy}}{d_x}-\frac{w_{xy}}{d_y}-\sum _{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\vee\frac{w_{x_1y}}{d_y}, \\ B_w&:=1-\frac{w_{xy}}{d_x}-\frac{w_{xy}}{d_y}-\sum _{x_1, x_1\sim x, x_1\sim y}\frac{w_{x_1x}}{d_x}\wedge\frac{w_{x_1y}}{d_y}. \end{aligned}$$

Only the transfer plan in the case A w <0≤B w needs a more careful discussion. □

Theorem 7

On a weighted locally finite graph G=(V,E), we have for any neighboring x,y

$$ \kappa(x, y)\leq\sum_{x_1, x_1\sim x, x_1\sim y}\frac {w_{x_1x}}{d_x}\wedge \frac{w_{x_1y}}{d_y}. $$
(3.18)

4 Curvature-Dimension Inequalities

In this section, we establish curvature-dimension inequalities on locally finite graphs. A very interesting one is the inequality under the condition κk>0. Curvature-dimension inequalities on locally finite graphs are studied in Lin–Yau [21]. We first state a detailed version of their results. Let us denote \(D_{w}(x):=\max_{y, y\sim x}\frac{d_{y}}{w_{yx}}\). Notice that on an unweighted graph, this is the D(x) we used in Sect. 3.

Theorem 8

On a weighted locally finite graph G=(V,E), the Laplace operator Δ satisfies

$$ \varGamma_2(f, f) (x)\geq\frac{1}{2}\bigl( \Delta f(x)\bigr)^2+ \biggl(\frac {2}{D_w(x)}-1 \biggr)\varGamma(f,f) (x). $$
(4.1)

Remark 12

Since in this case we attach the measure (2.1), we get

$$\operatorname{Hf}(x)=\frac{1}{4}\frac{1}{d_x}\sum_{y, y\sim x} \frac{w_{xy}}{d_y}\sum_{z, z\sim y}w_{yz} \bigl(f(x)-2f(y)+f(z)\bigr)^2. $$

We only need to choose special z=x in the second sum and then (2.8) and (2.9) imply the theorem.

4.1 Unweighted Graphs

We again restrict ourselves to unweighted graphs.

We observe that the existence of triangles causes cancelations in calculating the term \(\operatorname{Hf}(x)\). This gives

Theorem 9

On a locally finite graph G=(V,E), the Laplace operator satisfies

$$ \varGamma_2(f, f) (x)\geq\frac{1}{2}\bigl(\Delta f(x) \bigr)^2+ \biggl(\frac {1}{2}t(x)-1 \biggr)\varGamma(f, f) (x), $$
(4.2)

where

$$t(x):=\min_{y, y\sim x} \biggl(\frac{4}{d_y}+\frac{1}{D(x)} \sharp(x, y) \biggr). $$

Remark 13

Notice that if there is a vertex y, yx, such that ♯(x,y)=0, this will reduce to (4.1).

Proof

Starting from (2.9), the main work is to compare \(\operatorname{Hf}(x)\) with

$$\begin{aligned} \varGamma(f, f) (x)=\frac{1}{2}\frac{1}{d_x}\sum _{y, y\sim x}\bigl(f(y)-f(x)\bigr)^2. \end{aligned}$$

First we try to write out \(\operatorname{Hf}(x)\) as

$$ \operatorname{Hf}(x)=\frac{1}{4}\frac{1}{d_x}\sum_{y, y\sim x} \biggl[\frac {4}{d_y}\bigl(f(x)-f(y)\bigr)^2+\frac{1}{d_y}\sum _{z, z\sim y, z\neq x}\bigl(f(x)-2f(y)+f(z)\bigr)^2 \biggr]. $$

If there is a vertex x 1 which satisfies x 1x, x 1y, we have

$$\begin{aligned} &\frac{1}{d_y}\bigl(f(x)-2f(y)+f(x_1)\bigr)^2+ \frac {1}{d_{x_1}}\bigl(f(x)-2f(x_1)+f(y)\bigr)^2 \\ &\quad\geq \frac {1}{D(x)}\bigl[\bigl(f(x)-f(y)\bigr)^2+ \bigl(f(y)-f(x_1)\bigr)^2+2\bigl(f(x)-f(y)\bigr) \bigl(f(x_1)-f(y)\bigr) \\ &\quad\quad{}+\bigl(f(x)-f(x_1)\bigr)^2+\bigl(f(y)-f(x_1) \bigr)^2+2\bigl(f(y)-f(x_1)\bigr) \bigl(f(x)-f(x_1) \bigr)\bigr] \\ &\quad=\frac {1}{D(x)}\bigl[\bigl(f(x)-f(y)\bigr)^2+4 \bigl(f(y)-f(x_1)\bigr)^2+\bigl(f(x)-f(x_1) \bigr)^2\bigr] \\ &\quad\geq\frac{1}{D(x)}\bigl(f(x)-f(y)\bigr)^2. \end{aligned}$$
(4.3)

So the existence of a triangle which includes x and y will give another term

$$\frac{1}{D(x)}\bigl(f(y)-f(x)\bigr)^2 $$

to the sum in \(\operatorname{Hf}(x)\). Since this effect is symmetric w.r.t. y and x 1, we can get

$$\begin{aligned} \operatorname{Hf}(x)&\geq\frac{1}{4}\frac{1}{d_x}\sum_{y, y\sim x} \biggl(\frac {4}{d_y}+\frac{1}{D(x)}\sharp(x, y) \biggr) \bigl(f(y)-f(x) \bigr)^2 \\ &\geq t(x)\frac{1}{4}\frac{1}{d_x}\sum_{y, y\sim x} \bigl(f(y)-f(x)\bigr)^2 \\ &=t(x)\cdot\frac{1}{2}\varGamma(f, f) (x). \end{aligned}$$

Inserting this into (2.9) completes the proof. □

Recalling Theorem 4 and the subsequent discussion, we get the following curvature-dimension inequalities on graphs with positive Ollivier–Ricci curvature.

Corollary 2

On a locally finite graph G=(V,E), if κ(x,y)>0, then we have

$$ \varGamma_2(f, f) (x)\geq\frac{1}{2}\bigl(\Delta f(x) \bigr)^2+ \biggl(\frac {5}{2D(x)}-1 \biggr)\varGamma(f, f) (x). $$
(4.4)

Corollary 3

On a locally finite graph G=(V,E), if κ(x,y)≥k>0, then we have

$$\begin{aligned} \varGamma_2(f, f) (x) \geq&\frac{1}{2}\bigl(\Delta f(x) \bigr)^2 \\ &{}+ \biggl(\frac{1}{2}\min_{y, y\sim x} \biggl\{ \frac{4}{d_y}+\frac{\lceil kd_x\vee d_y\rceil }{D(x)} \biggr\} -1 \biggr)\varGamma(f, f) (x). \end{aligned}$$
(4.5)

Remark 14

Observe that a rough inequality in this case is

$$ \varGamma_2(f, f) (x)\geq\frac{1}{2}\bigl(\Delta f(x) \bigr)^2+ \biggl(\frac {2}{D(x)}+\frac{kd_x}{2D(x)}-1 \biggr) \varGamma(f, f) (x). $$

Comparing this one with (4.1), we see that positive κ increases the curvature function here.

Remark 15

We point out that the condition κ(x,y)≥k>0 implies that the diameter of the graph is bounded by \(\frac{2}{k}\) (see Proposition 23 in Ollivier [24]). So in this case the graph is a finite one.

Let us revisit the example of a complete graph \(\mathcal{K}_{n}\) (n≥2) with n vertices. Recall in Example 1, we know

$$ \kappa(x, y)=\frac{n-2}{n-1}, \quad\forall x, y. $$

For the curvature-dimension inequality on \(\mathcal{K}_{n}\), Theorem 9 or Corollary 3 using the above κ implies

$$\begin{aligned} \varGamma_2(f, f)&\geq\frac{1}{2}(\Delta f)^2+ \biggl(\frac{2}{n-1}-1+\frac {1}{2}\frac{n-2}{n-1} \biggr) \varGamma(f, f) \\ &=\frac{1}{2}(\Delta f)^2+\frac{4-n}{2(n-1)}\varGamma(f, f). \end{aligned}$$
(4.6)

Moreover, the curvature term in the above inequality cannot be larger. To see this, we calculate, using the same trick as in (4.3),

$$\begin{aligned} \operatorname{Hf}(x)&=\frac{1}{4(n-1)^2}\sum_{y, y\sim x}\sum _{z, z\sim x}\bigl(f(x)-2f(y)+f(z)\bigr)^2 \\ &=\frac{n+2}{2(n-1)}\varGamma(f, f) (x)+\frac{1}{(n-1)^2}\sum _{(x_1, x_2)}\bigl(f(x_1)-f(x_2) \bigr)^2, \end{aligned}$$

where \(\sum_{(x_{1}, x_{2})}\) means the sum over all unordered pairs of neighbors of x. Recalling (2.9), we get

$$\begin{aligned} \varGamma_2(f, f) (x) =&\frac{1}{2}(\Delta f)^2(x)+\frac{4-n}{2(n-1)}\varGamma (f, f) (x) \\ &{}+\frac{1}{(n-1)^2}\sum _{(x_1, x_2)}\bigl(f(x_1)-f(x_2) \bigr)^2. \end{aligned}$$
(4.7)

For any vertex x, we can find a particular function \(\overline{f}\),

$$ \overline{f}(z)=\left \{ \begin{array}{l@{\quad}l} 2, & \hbox{when $z=x$;} \\ 1, & \hbox{when $z\sim x$,} \end{array} \right . $$
(4.8)

such that the last term in (4.7) vanishes, and \(\varGamma(\overline {f},\overline{f})\neq0\). This means the curvature term in (4.6) is optimal for dimension parameter 2.

But the curvature term \(\frac{4-n}{2(n-1)}\) behaves very differently from κ. In fact as n→+∞,

$$\frac{4-n}{2(n-1)}\searrow-\frac{1}{2}\quad \text{whereas } \kappa \nearrow1. $$

To get a curvature-dimension inequality with a curvature term which behaves like κ, it seems that we should adjust the dimension parameter. In fact, we have

Proposition 3

On a complete graph \(\mathcal{K}_{n}\) (n≥2) with n vertices, the Laplace operator Δ satisfies for m∈[1,+∞],

$$ \varGamma_2(f, f) (x)\geq\frac{1}{m}\bigl(\Delta f(x) \bigr)^2+ \biggl(\frac {4-n}{2(n-1)}+\frac{m-2}{m} \biggr) \varGamma(f, f) (x). $$
(4.9)

Moreover, for every fixed dimension parameter m, the curvature term is optimal.

Proof

We have from (4.7)

$$\begin{aligned} \varGamma_2(f, f) (x)&=\frac{1}{m}(\Delta f)^2(x)+\frac{4-n}{2(n-1)}\varGamma (f, f) (x) \\ &\quad\ {}+\frac{1}{(n-1)^2}\sum_{(x_1, x_2)}\bigl(f(x_1)-f(x_2) \bigr)^2+ \biggl(\frac {1}{2}-\frac{1}{m} \biggr) (\Delta f)^2. \end{aligned}$$

Let us denote the sum of the last two terms by I. Then we have

$$\begin{aligned} I&=\frac{1}{(n-1)^2} \biggl\{ \biggl(\frac{1}{2}-\frac{1}{m} \biggr)\sum_{y, y\sim x}\bigl(f(y)-f(x)\bigr)^2\\ &\quad\ {}+ \sum_{(x_1,x_2)} \biggl[\bigl(f(x_1)-f(x) \bigr)^2+\bigl(f(x_2)-f(x)\bigr)^2 \\ &\quad\ {}+ \biggl(2 \biggl(\frac{1}{2}-\frac {1}{m} \biggr)-2 \biggr) \bigl(f(x_1)-f(x)\bigr) \bigl(f(x_2)-f(x)\bigr) \biggr] \biggr\} \\ &=\frac{1}{(n-1)^2} \biggl[ \biggl(\frac{1}{2}-\frac{1}{m} \biggr)\sum_{y, y\sim x}\bigl(f(y)-f(x)\bigr)^2\\ &\quad\ {}+ \biggl(1-\frac{m+2}{2m} \biggr) (n-2)\sum_{y, y\sim x} \bigl(f(y)-f(x)\bigr)^2 \\ &\quad\ {}+\sum_{(x_1,x_2)}\frac{m+2}{2m}\bigl(f(x_1)-f(x_2) \bigr)^2 \biggr] \\ &=\frac{m-2}{m}\varGamma(f, f) (x)+\frac{m+2}{2m(n-1)^2}\sum _{(x_1, x_2)}\bigl(f(x_1)-f(x_2) \bigr)^2. \end{aligned}$$

This finishes the proof. □

An interesting point appears when we choose the dimension parameter m of \(\mathcal{K}_{n}\) as n−1. Then we have

$$ \varGamma_2(f, f)\geq\frac{1}{n-1}(\Delta f)^2+ \frac{1}{2}\frac {n-2}{n-1}\varGamma(f, f), $$

where the curvature term is exactly \(\frac{1}{2}\kappa\). From the fact that \(\mathcal{K}_{n}\) could be considered as the boundary of a (n−1) dimensional simplex, the m we choose here seems also natural.

Remark 16

We point out another similar fact here. On a locally finite graph with maximal degree D and minimal degree larger than 1, Theorem 2 and Theorem 8 imply that

$$ \kappa(x, y)\geq2 \biggl(\frac{2}{D}-1 \biggr),\quad\forall x, y, $$
(4.10)

and

$$ \varGamma_2(f, f)\geq\frac{1}{2}(\Delta f)^2+ \biggl(\frac{2}{D}-1 \biggr)\varGamma(f, f), $$
(4.11)

respectively. It is not difficult to see that for regular trees with degree larger than 1, the curvature term in (4.11) is optimal. (Just consider the extension of the function (4.8), taking values 0 on vertices which are not x and neighbors of x there.) So on regular trees, the curvature term is also exactly \(\frac{1}{2}\kappa\).

Remark 17

In Erdös–Harary–Tutte [15], they define the dimension of a graph G as the minimum number n such that G can be embedded into a n dimensional Euclidean space with every edge of G having length 1. It is interesting that by their definition, the dimension of \(\mathcal{K}_{n}\) is also n−1 and the dimension of any tree is at most 2.

From the above observations, it seems natural to expect stronger relations between the lower bound of κ and the curvature term in the curvature-dimension inequality if one chooses proper dimension parameters.

4.2 Weighted Graphs

We have similar results on weighted graphs here, with similar proofs.

Theorem 10

On a weighted locally finite graph G=(V,E), the Laplace operator satisfies

$$ \varGamma_2(f, f) (x)\geq\frac{1}{2}\bigl(\Delta f(x) \bigr)^2+ \biggl(\frac {1}{2}t_w(x)-1 \biggr) \varGamma(f, f) (x), $$
(4.12)

where

$$\begin{aligned} t_w(x):=&\min_{y, y\sim x} \biggl\{ \frac{4w_{xy}}{d_y}+ \sum_{x_1, x_1\sim x, x_1\sim y} \biggl(\frac{w_{xy}}{d_y}\wedge \frac {w_{xx_1}}{d_{x_1}} \biggr)\frac{w_{x_1y}}{w_{xy}} \biggr\} . \end{aligned}$$