Exponential random graph models with soft clique constraints
Yasmin Tousinejad, Vera Koponen
YASMIN TOUSINEJAD AND VERA KOPONEN
ABSTRACT. Let r≥3 be fixed, and let Gn be the set of all simple graphs with vertex set [n]={1,…,n}. We consider an exponential random graph model which gives higher probability to G∈Gn than to H∈Gn if G has fewer r-cliques than H. But all graphs in Gn have positive probability. The degree to which graphs with fewer r-cliques are given higher probability is determined by a positive weight w. We prove that, asymptotically almost surely as n→∞, a random graph from Gn has a vertex partition into r−1 parts of roughly equal size, the density of edges between the parts is close to 1/2, and for every ε>0 the density of edges within any part is less than ε. The asymptotic structural properties are independent of the weight w as long as it is positive. We also extend the result to the context of several clique sizes, each one with its own weight.
1. INTRODUCTION
Studies of large graphs, or other structures, subject to certain hard constraints have a long history in the field of random structures. The classical result of Erdős, Kleitman and Rothschild [12] states that the proportion of bipartite graphs among all triangle-free graphs with vertices 1,…,n tends to 1 as n→∞. More generally, Kolaitis, Prömel and Rothschild [19] proved that, for every fixed r≥3, the proportion of (r−1)-partite graphs among all Kr-free graphs with vertices 1,…,n tends to 1 as n→∞. We can say that asymptotically almost surely (a.a.s.) a Kr-free graph is (r−1)-partite. Later studies have considered the a.a.s. structure of H-free graphs for other “forbidden” subgraphs H (e.g. [2, 3, 15]), and yet other investigations have considered forbidding certain induced subgraphs (e.g. [4, 17, 24, 25]). Some studies have considered the a.a.s. structure under constraints other than forbidding a finite number of subgraph or induced subgraph configurations (e.g. [6, 5, 20, 31]), and some have considered structures other than graphs (e.g. [18, 29]).
In all mentioned examples, the probability distribution on structures with vertex set [n]:={1,…,n} that satisfy the given constraints is the uniform one. One can reformulate the problem by considering all graphs (or some other kind of structure) with vertex set [n], assigning probability 0 to graphs that do not satisfy the constraints and equal probability to the other graphs. An alternative is to not assign probability 0 to graphs that violate the constraints, but to instead consider a probability distribution on graphs with vertex set [n] with the following property: A graph with more violations of the constraints is less likely than a graph with fewer violations of the constraints, but graphs with violations can still have positive probability. Since the constraints may be violated in this setting, it is more appropriate to call them soft constraints. This idea is present in so-called exponential random graph models (ERGMs) [27, 9]. The same idea also underlies probability distributions defined by so-called Markov logic networks (MLNs) [26], which are formal specification models in the field of Statistical Relational Artificial Intelligence (SRAI) [8, 11, 13]. MLNs can be defined for finite relational structures, not just graphs, but when restricted to graphs, they are special cases of ERGMs. Not much
Date: 31 August, 2026.
YASMIN TOUSINEJAD AND VERA KOPONEN
is known about structural properties of large random structures defined by fixed-weight MLNs. The investigations most directly related to this topic that we are aware of are [21, 30].
Our main result concerns an ERGM, or equivalently an MLN, on random graphs which “penalizes” (for any fixed r≥3) r-cliques, that is, copies of the complete graph on r vertices, denoted Kr. In other words, a graph with more r-cliques will be less likely than a graph with fewer r-cliques, but all graphs have positive probability. The strength of the penalization is expressed by a positive weight w. The precise definition of the distribution is given in Definition 2.2. Informally speaking, our main result, Theorem 2.7, shows that, for every fixed positive weight w and every ε>0, with probability tending to 1 as the number n of vertices tends to infinity, the following holds for a random graph:
(1) There is a partition of the vertex set into r−1 parts, each of size close to r−1n.
(2) The density of edges between any two different parts is close to 21.
(3) For every ε>0, if n is large enough then the density of edges within any part is less than ε.
Note that the asymptotic almost sure structure of a random graph does not depend on the weight w (as long as w>0).
We also prove (Corollary 6.6) that if r≥4 then the probability that a random graph is (r−2)-partite tends to 0 exponentially fast as the number of vertices tends to infinity.
A further consequence of our results is a stochastic block model limit for fixed induced subgraphs (Corollary 6.2). Informally speaking, for every fixed m, as n tends to infinity, the subgraph induced by [m] converges in distribution to a stochastic block model with r - 1 classes such that each of the m vertices is assigned independently and uniformly to one of these classes. Given these assignments, there are no edges within a class, and each possible edge between different classes is included independently with probability 21. The limiting distribution depends on r, but not on w.
We can refine the probability model considered so that we consider some integers 3≤r1<…<rk and for each ri we penalize an ri-clique with weight wi>0. (The larger wi is, the more strongly ri-cliques are penalized.) We show (Theorem 6.7) that, for all choices of weights w1,…,wk>0, the asymptotic behaviour of random graphs under this model is determined by r1. More precisely, with probability tending to 1 as the number n of vertices tends to infinity, a random graph will satisfy conditions (1) – (3) above if we let r:=r1.
Our main results are proved by using graphons [7, 22, 16], which are analytic objects used to represent limits of sequences of dense graphs. The article is organized as follows. Just below we introduce the general notation and terminology that will be used. In Section 2 we define the probability model and state the main results (in Theorem 2.7). Section 3 defines the concept of graphon, as well as related concepts, and proves some basic results that will be used later. In Section 4 we work with the concepts of entropy of graphons, homomorphism density of Kr in graphons, and the cut distance of a graphon from a “balanced (r−1)-partite graphon”, and show how they are related. In Section 5 we prove Theorem 2.7. Section 6 derives some consequences of Theorem 2.7 which were briefly described above.
General notation and terminology. By N we denote the set of positive integers. For n∈N, [n]:={1,…,n}. For n∈N, let Gn be the set of all undirected graphs without loops (i.e. simple graphs) with vertex set [n]. For every finite graph G, let E(G) denote its edge set and let χ(G) denote its chromatic number.
If n∈N, G∈Gn, and A⊆[n], set
eG(A):=∣{{u,v}∈E(G):u,v∈A}∣.
If in addition B⊆[n] is disjoint from A, define
eG(A,B):=∣{{u,v}∈E(G):∣{u,v}∩A∣=1,∣{u,v}∩B∣=1}∣.
For n∈N and graphs G,H∈Gn, define the n2-normalized edge-edit distance between G and H by
dedit(G,H):=n21∣E(G)△E(H)∣.
Here △ denotes symmetric difference. Thus dedit(G,H) is the number of edge insertions and deletions needed to turn G into H, normalized by n2.
For n∈N and p∈[0,1], the notation
Hn∼G(n,p)
means that Hn is a random element of Gn sampled by including an unordered pair {i,j} as an edge with probability p, independently of whether other pairs have been included or not. In particular, Hn∼G(n,21) means that every graph in Gn has probability 2−(2n), so Hn is uniformly distributed on Gn.
For every integer s≥2, Ks denotes a complete graph with s vertices. For every finite graph G, let Ks(G) denote the number of unordered copies of Ks in G, in other words, the number of subgraphs of G that are isomorphic to Ks.
2. THE PROBABILITY MODEL AND THE MAIN RESULTS
Throughout this article r≥3 is a fixed integer and w>0 is a fixed real number interpreted as the “weight” that will be associated to every r-tuple of vertices of a graph that does not form an r-clique.
2.1. The probability distribution
Definition 2.1. For every n∈N and G∈Gn, let
(2.1)
Nr(G):=nr−r!Kr(G),
so Nr(G) is the number of ordered r-tuples (v1,…,vr)∈[n]r (with repetitions allowed) that do not consist of r distinct vertices that form an r-clique in G.
Definition 2.2. For each n∈N and G∈Gn, we define its unnormalized mass by
μn,r(G):=exp(wNr(G)).
We then define the partition function (or normalizing constant) by
Zn,r:=J∈Gn∑μn,r(J).
Finally, we define the probability measure of the model by
Pn,r(A):=Zn,r1G∈A∑μn,r(G)forallA⊆Gn.
For a single graph G∈Gn, we also set
Pn,r(G):=Pn,r({G})=Zn,rμn,r(G).
Since w is fixed in the model, we suppress the dependence on w in the notation μn,r, Zn,r, and Pn,r. Note that if G,H∈Gn and Kr(G)<Kr(H), then Pn,r(G)>Pn,r(H). The distribution Pn,r is exactly the probability distribution on Gn obtained from a Markov logic network [26] with one soft constraint of the form
1≤i<j≤r⋁¬E(xi,xj)withweightw,
YASMIN TOUSINEJAD AND VERA KOPONEN
where ¬E(xi,xj) expresses that there is no edge between xi and xj.
Remark 2.3. (On counting only tuples without repetitions) In Definition 2.2 we count all ordered r-tuples (also those with repetitions)
(x1,…,xr)∈[n]r.
Another natural convention is to count only those ordered tuples whose entries are pairwise distinct. Under that convention, the total number of allowed ordered tuples is
n(n−1)⋯(n−r+1),
and the falsifying tuples are still exactly the r! orderings of the vertices of each copy of Kr. So the number of satisfied groundings becomes
Nrdist(G)=n(n−1)⋯(n−r+1)−r!Kr(G).
If we use the same weight w, then the corresponding unnormalized mass is
is deterministic in the sense that it depends only on n, r, and w, and not on the graph G. Therefore this factor changes the partition function, but it disappears when we normalize to obtain probabilities. Indeed, if
Zn,rdist:=J∈Gn∑μn,rdist(J),
then
Zn,r=exp(w[nr−n(n−1)⋯(n−r+1)])Zn,rdist,
and hence
Pn,r(G)=Zn,rμn,r(G)=Zn,rdistμn,rdist(G).
So, for the same clause weight w, the two counting conventions define exactly the same probability measure on Gn. Thus the choice between these two conventions does not affect which graphs are more or less likely.
2.2. The equivalent exponential random graph model. The distribution Pn,r can be defined in the setting of exponential random graph models [27].
Definition 2.4. Fix n,k∈N. An Exponential Random Graph Model (ERGM) on Gn is a probability distribution of the form
where T1,…,Tk are real-valued functions on ⋃n∈NGn, ϑ=(ϑ1,…,ϑk)∈Rk is a parameter vector, and
ZnERGM(ϑ):=J∈Gn∑exp(i=1∑kϑiTi(J))
is the normalizing constant. All else being equal, a positive value of ϑi rewards larger values of Ti(G) in the exponent, while a negative value penalizes them.
Note that if k=1, ϑ1=w, and T1(G)=Nr(G), then
Pn,r(G)=Pn,ϑ(G)forallG∈Gn.
Hence Pn,r is an ERGM.
2.3. The reduced partition function. It will be convenient to work with the quantities defined below.
We call Zn,r the reduced partition function and Fn,r(w) the reduced free energy.
(b) For a graph G∈Gn, we call
exp(−r!wKr(G))
the reduced mass of G. Thus Zn,r is the sum of the reduced masses of all graphs in Gn.
The partition function Zn,r sums the unnormalized masses of all graphs in Gn. As the next lemma shows, its logarithm contains the graph-independent term wnr. This term changes the normalizing constant but not the probability measure, so we will often remove it and work with the reduced partition function and reduced free energy.
Proof. Insert (2.1) into the definition of μn,r(G):
μn,r(G)=exp(w[nr−r!Kr(G)]).
Now factor out the deterministic term ewnr. The formulas for Zn,r and Pn,r follow immediately.
2.4. Main results. Recall that we have fixed an integer r≥3 and a real w>0. The notation
Gn∼Pn,r
means that Gn is a random graph from Gn under the distribution Pn,r. (So if J∈Gn then P(Gn=J)=Pn,r(J).) Recall also notation introduced in Section 1. Some of the notions appearing in the main result below are defined only later: A graphon is defined in Definition 3.1. For a graph G∈Gn, its empirical graphon WG is defined in Definition 3.2. The cut distance δ□ between two graphons is defined in Definition 3.6, and the cut distance from a graphon to a family is defined in Definition 3.7. The family Bq⋆ is defined in Definition 4.1; informally, it consists of the balanced q-block graphons that are equal to 0 on the diagonal blocks and equal to 21 on the off-diagonal blocks.
YASMIN TOUSINEJAD AND VERA KOPONEN
Theorem 2.7. Fix r≥3, set q=r−1. Let Gn∼Pn,r. Then the following hold.
(i) The reduced free energy satisfies
n→∞limFn,r(w)=2ln2(1−q1).
(ii) For every ε>0, there are constants c=c(ε,r)>0 and N=N(ε,r,w) such that, for every n≥N,
P(δ□(WGn,Bq⋆)≥ε)≤e−cn2.
(iii) For every ε>0, there are constants c=c(ε,r)>0 and n0=n0(ε,r,w) such that, for every n≥n0, with probability at least 1−e−cn2, the graph Gn has a partition
[n]=V1⊔⋯⊔Vq
with the following properties:
(a) Each part is almost balanced:
∣∣Vi∣−n/q∣≤εnforeveryi∈[q].
(b) Each between-part edge density is close to 21:
(c) The total number of edges inside the parts satisfies
i=1∑qeGn(Vi)≤10qεn2.
(d) The total density of edges inside the parts is at most ε:
∑i=1q(2∣Vi∣)∑i=1qeGn(Vi)≤ε.
In particular, if Gn′ is obtained from Gn by deleting all edges whose endpoints lie in the same part, then Gn′ is q-partite and
dedit(Gn,Gn′)≤10qε≤2ε.
2.5. Related work. In the introduction we mentioned several studies of graphs, or other relational structures, subject to “hard” constraints. We also mentioned [21, 30] about structures subject to “soft” constraints defined by Markov logic networks. As we use graphons to prove our main results we like to mention [1] which considers Markov logic networks and a multi-relational analogue of a graphon in the context when one considers several different edge relations. However, the results in [1], which generalize the basic theory of graphons, are not of help in the present context as far as we can see.
In [9] Chatterjee and Diaconis consider ERGM distributions on Gn of the form
PnT(G)=∑J∈Gnexp(n2T(J))exp(n2T(G))
where T is a function from ⋃n∈NGn into the reals. If we rewrite the distribution Pn,r so that, for an appropriate choice of T and all n, Pn,r=PnT then, for all n and all G∈Gn, we must have
T(G):=n2wNr(G).
Recall that Nr(G) is the number of r-tuples of vertices of G that do not form an r-clique. So if G∈Gn does not have an r-clique (e.g. if G is (r−1)-partite), then Nr(G)=nr where r≥3. It follows that maxG∈GnT(G) is unbounded as n→∞. But the results of [9] assume that maxG∈GnT(G) is bounded as n→∞. Therefore their results do not apply to the present context.
3. GRAPHON PRELIMINARIES
3.1. Basic definitions
Definition 3.1 (Graphon). A graphon is a measurable function
W:[0,1]2→[0,1]
such that W(x,y)=W(y,x) for almost every (x,y)∈[0,1]2. Let W denote the family of these measurable functions.
Let λ denote Lebesgue measure on [0,1]. For each integer m≥1, let λm denote the product Lebesgue measure on [0,1]m.
Graphons are the standard limit objects for dense graphs. They also define random graph models. Let W be a graphon and let n∈N. Choose X1,…,Xn independently and uniformly from [0,1]. Conditional on X1,…,Xn, put each edge {i,j} with i<j into the graph independently with probability
W(Xi,Xj).
Definition 3.2 (Empirical graphon). Let n∈N, and let G be a graph with vertex set [n] and adjacency matrix (aij)1≤i,j≤n, where
aij=ajiandaii=0.
Split [0,1] into n intervals of equal length by setting
Ii=[ni−1,ni)for1≤i<n,In=[nn−1,1].
The empirical graphon of G is the graphon WG:[0,1]2→[0,1] defined as follows. If x∈Ii and y∈Ij, then
WG(x,y):=aij.
Thus WG records the adjacency matrix of G on the n2 rectangles Ii×Ij. It is measurable, symmetric, and takes only the values 0 and 1. Also, WG=0 on each rectangle Ii×Ii, because aii=0.
Definition 3.3 (Homomorphism density). Let H be a finite simple graph with vertex set V(H)={1,…,k}. For a graphon W, the homomorphism density of H in W is
t(H,W):=∫[0,1]k{i,j}∈E(H)∏W(xi,xj)dx1⋯dxk.
Remark 3.4. For H=Kr this becomes
t(Kr,W)=∫[0,1]r1≤a<b≤r∏W(xa,xb)dx1⋯dxr.
The integrand is nonnegative. So if t(Kr,W)=0, then the product inside the integral must vanish almost everywhere.
From now on, a graphon W is called a graphon of zero Kr-density if
t(Kr,W)=0,
that is, if its Kr-homomorphism density is zero.
YASMIN TOUSINEJAD AND VERA KOPONEN
Definition 3.5 (Cut norm). For an integrable function U:[0,1]2→R, the cut norm is
Definition 3.6 (Cut distance). A measurable map ϕ:[0,1]→[0,1] is measure-preserving if
λ(ϕ−1(A))=λ(A)foreveryLebesgue−measurableA⊆[0,1].
A measure-preserving bijection is a bijection ϕ:[0,1]→[0,1] such that both ϕ and ϕ−1 are Lebesgue-measurable and ϕ is measure-preserving.
If W is a graphon and ϕ is a measure-preserving map, define
Wϕ(x,y):=W(ϕ(x),ϕ(y)).
Thus Wϕ is obtained from W by applying ϕ to both variables. When ϕ is a measure-preserving bijection, we call Wϕ a relabeling of W.
For graphons W1 and W2, their cut distance is
δ□(W1,W2):=ϕinf∥W1−W2ϕ∥□,
where the infimum is taken over all measure-preserving bijections ϕ:[0,1]→[0,1].
Relabeling by a measure-preserving bijection does not change the cut norm. Indeed, let F:[0,1]2→R be a measurable function with
∫[0,1]2∣F(x,y)∣dxdy<∞,
and let ϕ be a measure-preserving bijection. Define
Fϕ(x,y):=F(ϕ(x),ϕ(y)).
Then
∥Fϕ∥□=∥F∥□.
This follows by changing variables in the integral over S×T. Since ϕ is measure-preserving and bijective, the sets ϕ(S) and ϕ(T) run through the same measurable subsets of [0,1] as S and T. Thus the supremum in the cut norm is unchanged.
Definition 3.7. Let W be a graphon, and let F be a nonempty family of graphons. The cut distance from W to F is
δ□(W,F):=V∈Finfδ□(W,V).
The cut distance δ□ is a pseudometric on W. Indeed, let U,V,W∈W. To see symmetry, let ϕ be a measure-preserving bijection. By invariance of the cut norm under relabeling,
∥U−Vϕ∥□=∥Uϕ−1−V∥□=∥V−Uϕ−1∥□.
Taking the infimum over ϕ gives δ□(U,V)=δ□(V,U). For the triangle inequality, if ϕ and ψ are measure-preserving bijections, then
Taking the infimum over ϕ and ψ proves the triangle inequality. Nonnegativity and δ□(U,U)=0 are immediate.
Notation 3.8 (Reduced graphon space). Define
W∼V⟺δ□(W,V)=0,
and let
W:=W/∼,π:W→W
be the quotient space and quotient map. We use W:=π(W) and, for n∈N and G∈Gn, WG:=π(WG). For reduced graphons define
d□(U,V):=δ□(U,V),
where U and V are arbitrary representatives. This definition does not depend on the chosen representatives. Indeed, if U′∼U and V′∼V, then
δ□(U′,V′)≤δ□(U′,U)+δ□(U,V)+δ□(V,V′)=δ□(U,V).
The same argument with (U,V) and (U′,V′) interchanged gives
δ□(U,V)≤δ□(U′,V′).
Hence
δ□(U′,V′)=δ□(U,V).
Thus d□ is well defined on W. It is a metric because nonnegativity, symmetry, and the triangle inequality are inherited from δ□. Also,
d□(U,V)=0
holds exactly when U∼V, which means U=V. The metric space (W,d□) is compact; see [22, Thm. 9.23]. For F⊆W, we use
π(F):={π(W):W∈F}⊆W
for its quotient image.
Remark 3.9 (Zero cut distance). For graphons U and V, the condition
δ□(U,V)=0
means that U and V represent the same graph limit. Equivalently, there exist measure-preserving maps ϕ,ψ:[0,1]→[0,1] such that
Uϕ=Vψalmosteverywhere;
see [22, Cor. 10.34 and Cor. 10.35(a)].
The maps in this characterization need not be bijections. Consequently, the condition δ□(U,V)=0 is weaker than almost-everywhere equality after a single measure-preserving relabeling.
By Notation 3.8, graphons at zero cut distance represent the same point of W. This quotient space is the reduced graphon space used in [10, Sec. 1.3].
Notation 3.10. For an integrable function U:[0,1]2→R, the L1-norm is defined as
∥U∥1:=∫[0,1]2∣U(x,y)∣dxdy.
Notation 3.11 (Indicator functions). For any set or event A, 1A denotes its indicator. Thus 1A(z)=1 when z∈A and 1A(z)=0 otherwise.
YASMIN TOUSINEJAD AND VERA KOPONEN
Lemma 3.12. We will use the following two forms of the Cauchy-Schwarz inequality.
(i) If S⊆[0,1]2 is measurable and f:S→R is measurable with
∫Sf2<∞,
then
(∫S∣f∣)2≤λ2(S)∫Sf2.
(ii) If m≥1 is an integer and x1,…,xm∈R, then
(a=1∑mxa)2≤ma=1∑mxa2.
Equivalently,
a=1∑mxa2≥m1(a=1∑mxa)2.
Consequently, if q∈N, n∈Z≥0, m1,…,mq∈Z≥0, and
a=1∑qma=n,
then
a=1∑q(2ma)=21(a=1∑qma2−n)≥21(qn2−n).
Proof. For (i), apply [28, Thm. 11.35] to the functions ∣f∣ and 1 on S. We get
Lemma 3.14 (Clique density is Lipschitz in cut distance). Let r≥2. For all graphons U and V,
∣t(Kr,U)−t(Kr,V)∣≤(2r)∥U−V∥□.
Consequently,
∣t(Kr,U)−t(Kr,V)∣≤(2r)δ□(U,V).
In particular, the map W↦t(Kr,W) is continuous with respect to cut distance.
Proof. By [16, Rem. 2.1], every Lebesgue-measurable graphon on [0,1]2 is equal almost everywhere to a Borel-measurable one. Such a replacement changes neither homomorphism densities nor cut norms. We may therefore replace U and V by Borel-measurable representatives and continue to denote them by U and V. In particular, whenever all but one of the variables are fixed below, the resulting one-variable function is measurable.
Let
m:=(2r),D:=U−V.
Choose once and for all an ordering of the (2r) edges of Kr. Equivalently, choose an ordering of the pairs
(i1,j1),…,(im,jm),1≤iℓ<jℓ≤r,
so that every pair appears exactly once.
Vertex s carries the single variable xs∈[0,1].
The symbols iℓ and jℓ record which two vertices form the ℓ-th edge in the chosen list. For example, when r = 4, one possible ordering is
one number for each vertex of the clique. For every edge {i,j} of the clique, we include the factor W(xi,xj). Then we multiply all these factors together. Finally, we average over all choices of (x1,…,xr)∈[0,1]r. Since the set [0,1]r has total measure 1, the integral here is literally an average.
where the coordinates are taken in increasing order. Thus x denotes all variables except xa and xb. When r=2, [0,1]0 is interpreted as a one-point probability space, so integration with respect to dx means evaluation at that point.
Because every graphon takes values in [0,1], the integrand in (3.1) is measurable and bounded in absolute value by 1. Thus it is integrable on [0,1]r. We can therefore write the integral by first averaging over the two variables xa and xb, and then averaging over the remaining r−2 variables, which we collect in x.
The distinguished edge {a,b} contributes the factor
D(xa,xb).
Every other edge of Kr falls into exactly one of the following three types.
An edge of the form {a,c} with c∈/{a,b} contributes a factor that depends on xa but not on xb.
An edge of the form {b,c} with c∈/{a,b} contributes a factor that depends on xb but not on xa.
An edge of the form {c,d} with c,d∈/{a,b} contributes a factor that depends on neither xa nor xb; once x is fixed, it is constant.
Because Kr is a simple graph, there is only one edge joining a and b. So the factor
D(xa,xb)
is the only factor that depends on both variables at the same time.
Figure 1 illustrates this factorization in the case K4.
thick edge: (U−V)(x3,x4)
FIGURE 1. In the integral defining t(K4,W), vertex i carries the variable xi, and the edge {i,j} contributes the factor W(xi,xj). If the distinguished edge is {3,4}, then that edge contributes the factor (U−V)(x3,x4). Once x1 and x2 are fixed, the remaining factors split into a function of x3, a function of x4, and a constant.
Therefore, for each fixed choice of x, the whole integrand in (3.1) can be written in the form
C(x)D(xa,xb)Ax(xa)Bx(xb),
YASMIN TOUSINEJAD AND VERA KOPONEN
where Ax,Bx:[0,1]→[0,1] are measurable and C(x)∈[0,1]. More concretely, Ax is the product of all remaining factors coming from edges that touch a but not b, Bx is the product of all remaining factors coming from edges that touch b but not a, and C(x) is the product of all remaining factors coming from edges that touch neither a nor b. Empty products are interpreted as 1. These functions take values in [0,1] because every graphon factor does.
Using this factorization and averaging first in xa and xb, we get
Now take the infimum over all measure-preserving bijections ϕ. By the definition of δ□,
∣t(Kr,U)−t(Kr,V)∣≤(2r)δ□(U,V).
Thus W↦t(Kr,W) is Lipschitz with respect to cut distance, and in particular it is continuous.
3.2. Entropy. Entropy tells us, on the logarithmic scale, how many ways there are to choose edges and non-edges so that the edge density has a fixed value. The relevant one-variable function is the binary entropy
h(p):=−plnp−(1−p)ln(1−p),p∈[0,1],
with the convention 0ln0:=0. If pN is an integer, then the number of 0-1 strings of length N with exactly pN ones is (pNN), and for large N the logarithm of this number has leading term Nh(p). Thus h(p) measures the entropy contribution per possible edge when the edge density is p. In particular,
h(0)=h(1)=0,0≤h(p)≤ln2,h(21)=ln2.
So the entropy is zero when the presence or absence of an edge is completely determined, and it is largest at p=21, where the two possibilities are most evenly balanced.
Definition 3.15 (Graphon entropy). For a graphon W, define
(3.3)
Ent(W):=21∫[0,1]2h(W(x,y))dxdy.
The factor 21 is needed because the square [0,1]2 counts both (x,y) and (y,x), while an edge is an unordered pair.
Lemma 3.16. For every p∈[0,1],
(3.4)
h(p)≤ln2−2(p−21)2.
Proof. Set
ψ(p):=ln2−h(p)−2(p−21)2.
For p∈(0,1),
h′(p)=lnp1−p,
so
ψ′(p)=ln1−pp−4(p−21).
Also,
ψ′′(p)=p(1−p)1−4≥0,
because p(1−p)≤1/4. Thus ψ is convex on (0,1) and extends continuously to [0,1]. Since
ψ(21)=0,ψ′(21)=0,
the point p=1/2 is a global minimizer. Hence ψ(p)≥0 for every p∈[0,1], which gives (3.4).
Lemma 3.17. If U,V∈W satisfy δ□(U,V)=0, then
Ent(U)=Ent(V).
Consequently,
Ent(W):=Ent(W),W=π(W),
is a well-defined function on W.
YASMIN TOUSINEJAD AND VERA KOPONEN
Proof. By Remark 3.9, there are measure-preserving maps ϕ,ψ:[0,1]→[0,1] such that Uϕ=Vψ almost everywhere. The product maps ϕ×ϕ and ψ×ψ preserve λ2, hence
Ent(U)=Ent(Uϕ)=Ent(Vψ)=Ent(V).
Graphon entropy controls the number of finite graphs with prescribed large-scale structure. More precisely, for a cut-closed family F, the n2-scale upper bound is governed by supW∈FEnt(W), rather than by the entropy of an arbitrarily chosen member of F. In Section 5, Lemma 5.9 uses such an entropy supremum to bound the number of graphs whose empirical graphons lie in a given family. We combine this result with Lemma 4.12 in the proof of Theorem 2.7(ii) to show that the probability of staying a fixed cut distance away from Bq∗ decreases exponentially in n2. Lemma 4.5 shows that, among graphons with zero Kr-density, entropy is maximized exactly by the graphons at zero cut distance from Bq∗.
Lemma 3.18. For every n∈N, every graph G with vertex set [n], and every integer r≥2,
t(Kr,WG)=nrr!Kr(G).
Proof. Let (aij)1≤i,j≤n be the adjacency matrix of G, and let I1,…,In be the intervals from Definition 3.2. Splitting [0,1]r into the boxes
Iv1×⋯×Ivr,v1,…,vr∈[n],
gives
(3.5)
t(Kr,WG)=nr1v1,…,vr∈[n]∑1≤s<t≤r∏avs,vt.
Since every entry of the adjacency matrix is either 0 or 1, the summand corresponding to (v1,…,vr) is equal to 1 exactly when the vertices v1,…,vr are pairwise distinct and form a copy of Kr in G. Indeed, if vs=vt for some s<t, then the product contains the factor
avs,vt=avs,vs=0,
because G has no loops.
Thus the sum in (3.5) counts the ordered r-tuples obtained by ordering the vertices of copies of Kr in G. Every unordered copy has exactly r! such orderings, and therefore
(3.6)
v1,…,vr∈[n]∑1≤s<t≤r∏avs,vt=r!Kr(G).
Combining (3.5) and (3.6) gives
t(Kr,WG)=nrr!Kr(G),
as required.
Remark 3.19. For n≥r, Lemma 3.18 gives
t(Kr,WG)=nrn(n−1)⋯(n−r+1)(rn)Kr(G).
Thus the graphon homomorphism-density normalization differs from the usual clique density based on unordered copies by the factor
nrn(n−1)⋯(n−r+1).
For fixed r,
n→∞limnrn(n−1)⋯(n−r+1)=1.
4. ENTROPY MAXIMIZERS AND STABILITY
In this section we define a family of “balanced q-partite graphons” (recall q:=r−1) and prove results which relate the distance of a graphon W to a balanced q-partite graphon to the homomorphism density of Kr in W and the entropy of W. In particular, we show that the balanced q-partite graphons are the graphons that maximize entropy among the graphons with Kr-homomorphism density 0. This will be used in the proof of Theorem 2.7 in Section 5.
4.1. The family Bq⋆ and the balanced Turán graphons
Definition 4.1. Let q≥2. The family Bq⋆ consists of all graphons W:[0,1]2→[0,1] for which there exists a measurable partition
[0,1]=A1⊔⋯⊔Aq,λ(Ai)=q1foreveryi∈[q],
such that
W(x,y)=0foralmostevery(x,y)∈Ai×Aiforeveryi,
and
W(x,y)=21for almost every (x,y)∈Ai×Ajfor all distinct i,j∈[q].
Equivalently, the values of W on the q2 block products are given by the following block-value matrix:
021⋮21210⋮21⋯⋯⋱⋯2121⋮0
with blocks of equal size.
So Bq⋆ is the graphon analogue of the family of balanced complete q-partite graphs, except that the off-diagonal blocks have value 21 instead of 1.
Every graphon in Bq⋆ is equal almost everywhere to a relabeling of Wq⋆. Indeed, suppose that V∈Bq⋆ corresponds to a balanced partition [0,1]=B1⊔⋯⊔Bq. For each i∈[q], both Bi and Ai are measurable subsets of [0,1] with Lebesgue measure 1/q. Equip these sets with their normalized restricted Lebesgue measures. By [16, Cor. A.11], there is a measure-preserving bijection
ϕi:Bi→Ai.
Since the same normalization factor q is used on both sets, ϕi also preserves the original Lebesgue measure. Pasting ϕ1,…,ϕq gives a measure-preserving bijection ϕ:[0,1]→[0,1] such that
ϕ(Bi)=Aiuptonullsetsforeveryi∈[q].
Therefore
V=(Wq⋆)ϕalmosteverywhere.
In particular,
δ□(V,Wq⋆)=0foreveryV∈Bq⋆.
Define
Wq⋆:=π(Wq⋆),Bq⋆:=π(Bq⋆).
Then
Bq⋆={Wq⋆}.
Consequently, for every graphon W,
δ□(W,Bq⋆)=δ□(W,Wq⋆).
Lemma 4.4. Fix r≥3 and set q=r−1. Let U be a {0,1}-valued graphon and assume
t(Kr,U)=0.
Then
∫[0,1]2U(x,y)dxdy≤1−q1.
Moreover, equality holds if and only if
δ□(U,Uq⋆)=0.
Proof. This is the Kr-free case of the graphon Turán theorem; see [22, Cor. 16.11]. In the present notation, its equality case is exactly the condition
δ□(U,Uq⋆)=0.
Lemma 4.5 (Entropy maximizers among graphons of zero Kr-density). Fix r≥3 and set q=r−1. Then
sup{Ent(W):t(Kr,W)=0}=2ln2(1−q1).
A graphon W with t(Kr,W)=0 attains this supremum if and only if
δ□(W,Bq⋆)=0.
Equivalently, the reduced maximizer set is the singleton Bq⋆={Wq⋆}.
Remark 4.6. Lemma 4.5 can also be deduced from [9, Thm. 8.2]. In that theorem, take H=Kr and p=1/2. Since χ(Kr)=r, the graphon g appearing there is the balanced (r−1)-partite {0,1}-valued graphon. Hence pg=21g is a representative of the reduced class Wq⋆; equivalently,
π(pg)=Wq⋆.
The off-diagonal support of g has measure 1−1/q. Therefore
Ent(21g)=2ln2(1−q1),
which also gives the value of the constrained maximum.
For p=1/2, the Erdős-Rényi rate function I21, defined in (5.9) below, satisfies
I21(W)=2ln2−Ent(W).
Thus minimizing I21 under the constraint t(Kr,W)=0 is the same as maximizing Ent(W) under the same constraint. We nevertheless give a direct proof below, using the graphon Turán theorem, because it is short and makes the equality cases explicit.
Proof of Lemma 4.5. Let W be a graphon satisfying
t(Kr,W)=0.
Set
S:={(x,y)∈[0,1]2:W(x,y)>0},U:=1S.
Since W is measurable and symmetric almost everywhere, the function U is also measurable and symmetric almost everywhere. Also, U only takes the values 0 and 1. Hence U is a graphon.
We first show that U has zero Kr-density. By Remark 3.4, the integrand defining t(Kr,W) is nonnegative. Since t(Kr,W)=0, we have
1≤a<b≤r∏W(xa,xb)=0
for almost every (x1,…,xr)∈[0,1]r. If
1≤a<b≤r∏U(xa,xb)=1,
then every factor U(xa,xb) is equal to 1. By the definition of U, this means that every corresponding factor W(xa,xb) is strictly positive. Thus
1≤a<b≤r∏W(xa,xb)>0.
This can happen only on a null set. Therefore
t(Kr,U)=0.
We now bound the entropy of W. Since W=0 on Sc and h(0)=0, Definition 3.15 gives
Ent(W)=21∫Sh(W(x,y))dxdy.
By Lemma 3.16, we have h(p)≤ln2 for every p∈[0,1]. Hence
(4.1)
Ent(W)≤2ln2λ2(S)=2ln2∫[0,1]2U(x,y)dxdy.
YASMIN TOUSINEJAD AND VERA KOPONEN
Since U is a {0,1}-valued graphon and t(Kr,U)=0, Lemma 4.4 gives
(4.2)
∫[0,1]2U(x,y)dxdy≤1−q1.
Combining (4.1) and (4.2), we get
Ent(W)≤2ln2(1−q1).
Therefore
sup{Ent(W):t(Kr,W)=0}≤2ln2(1−q1).
Next we show that this upper bound is attained. Consider the canonical graphon Wq∗ from Notation 4.3. The graphon Wq∗ has value 0 on the diagonal blocks and value 1/2 on the off-diagonal blocks. Since q=r−1, any choice of r points in [0,1] contains two points in the same canonical block. For that pair, the corresponding factor in the Kr-integrand is 0. Hence
(4.3)
t(Kr,Wq⋆)=0.
The diagonal blocks have total measure 1/q, and the off-diagonal blocks have total measure 1 - 1/q. Using Definition 3.15, together with
h(0)=0andh(21)=ln2,
we obtain
(4.4)
Ent(Wq⋆)=21(1−q1)h(21)=2ln2(1−q1).
Thus
sup{Ent(W):t(Kr,W)=0}=2ln2(1−q1).
It remains to identify the graphons that attain this value.
Suppose first that W is an entropy maximizer under the constraint
t(Kr,W)=0.
Use the same notation as above,
S={(x,y)∈[0,1]2:W(x,y)>0},U=1S.
Since W attains the value in (4.4), both inequalities (4.1) and (4.2) must be equalities.
Equality in (4.2), by the equality case in Lemma 4.4, gives
δ□(U,Uq⋆)=0.
Equality in (4.1) gives
h(W(x,y))=ln2foralmostevery(x,y)∈S.
By Lemma 3.16, equality h(p)=ln2 is possible only when p=1/2. Hence
W(x,y)=21foralmostevery(x,y)∈S.
Also, by the definition of S, we have W=0 almost everywhere on Sc. Therefore
W=21Ualmosteverywhere.
By Notation 4.2, the family Bq⋆ consists exactly of the graphons 21V with V∈Uq⋆, up to almost-everywhere equality. Since
δ□(U,Uq⋆)=0,
we get
δ□(21U,Bq⋆)=0.
Indeed, for every η>0, choose Vη∈Uq⋆ such that
δ□(U,Vη)<2η.
Then 21Vη∈Bq⋆, and by homogeneity of the cut norm,
δ□(21U,21Vη)≤21δ□(U,Vη)<η.
Since W=21U almost everywhere, it follows that
δ□(W,Bq⋆)=0.
Conversely, suppose that
δ□(W,Bq⋆)=0.
By Notation 4.3, this is equivalent to
δ□(W,Wq⋆)=0.
Using Lemma 3.14 and (4.3), we get
t(Kr,W)=t(Kr,Wq⋆)=0.
Using Lemma 3.17 and (4.4), we get
Ent(W)=Ent(Wq⋆)=2ln2(1−q1).
Thus W satisfies the constraint t(Kr,W)=0 and attains the maximum entropy.
We have shown that the entropy maximizers are exactly the graphons W satisfying
δ□(W,Bq⋆)=0.
Finally, Notation 4.3 gives
Bq⋆={Wq⋆},
so the reduced maximizer set is the singleton {Wq⋆}.
Remark 4.7. By Lemma 3.18, the reduced mass of G∈Gn is
exp(−r!wKr(G))=exp(−n2Lnt(Kr,WG)),Ln:=wnr−2.
The corresponding graphon functional is therefore
Tn(W)=−Lnt(Kr,W).
For fixed L > 0, let
FL⋆:=π(W∈Wargmax{Ent(W)−Lt(Kr,W)}).
For the ERGM with zero edge coefficient and clique coefficient −L, [9, Thm. 3.2] gives exponential concentration around FL⋆. The concentration rate is not given uniformly in L. Moreover, [9, Thm. 7.1] gives
L→∞limW∈FL⋆supd□(W,Wq⋆)=0.
These results describe an iterated limit in which one first lets n→∞ with L fixed and then lets L→∞. In the fixed-weight MLN considered here,
Ln=wnr−2,n→∞limLn=+∞.
YASMIN TOUSINEJAD AND VERA KOPONEN
Thus n and Ln grow together. Since the concentration rate for fixed L is not uniform in L, the fixed-coefficient theorem does not directly give a bound of the form e−cn2 with c>0 independent of n along this sequence.
4.2. Entropy gap away from the maximizers. The next two lemmas show that once we stay a fixed cut distance away from the reduced maximizer class represented by Bq⋆, the entropy drops.
Lemma 4.8. Fix r≥3 and set q=r−1. For every ε>0 there exists γr(ε)>0 such that the following holds.
Let Un∈W be the equivalence class of Un. By Notation 3.8, the metric space (W,d□) is compact; see [22, Thm. 9.23]. Hence, after passing to a subsequence, we may assume that
n→∞limd□(Un,U)=0
for some U∈W. Choose any representative U∈U. Since the metric on W is induced by δ□, this means exactly that
n→∞limδ□(Un,U)=0.
By Lemma 3.14, the map t(Kr,⋅) is continuous with respect to cut distance. Therefore
n→∞limt(Kr,Un)=t(Kr,U)=0.
Also, the limit still stays at least ε away from Uq⋆. Indeed,
δ□(U,Uq⋆)≥δ□(Un,Uq⋆)−δ□(Un,U),
and letting n→∞ gives
(4.5)
δ□(U,Uq⋆)≥ε.
We also need the edge density to pass to the limit. For graphons W and V, and for any measure-preserving bijection ϕ,
∫[0,1]2V=∫[0,1]2Vϕ
by a change of variables. Therefore
∫[0,1]2(W−V)=∫[0,1]2(W−Vϕ).
By Definition 3.5, we may choose S=T=[0,1] in the supremum defining the cut norm, so
∫[0,1]2(W−Vϕ)≤∥W−Vϕ∥□.
Taking the infimum over all measure-preserving bijections ϕ gives
∫[0,1]2(W−V)≤δ□(W,V).
Apply this to (W,V)=(Un,U) and let n→∞:
(4.6)
∫[0,1]2U=n→∞lim∫[0,1]2Un=1−q1.
Now define the positivity set of U by
S:={(x,y)∈[0,1]2:U(x,y)>0},V:=1S.
The function V is measurable, {0,1}-valued, and symmetric almost everywhere; hence it is a graphon. Moreover,
0≤U≤V≤1.
We show first that V is a graphon of zero Kr-density. If
1≤a<b≤r∏V(xa,xb)=1,
then each factor U(xa,xb) is strictly positive, so
1≤a<b≤r∏U(xa,xb)>0.
But the integrand defining t(Kr,U) is nonnegative and has integral 0. So this can happen only on a set of measure 0. Hence
t(Kr,V)=0.
Because U≤V, equation (4.6) gives
∫[0,1]2V≥∫[0,1]2U=1−q1.
On the other hand, V is a {0,1}-valued graphon of zero Kr-density, so Lemma 4.4 gives
∫[0,1]2V≤1−q1.
YASMIN TOUSINEJAD AND VERA KOPONEN
Thus
∫[0,1]2V=1−q1.
By the equality case in Lemma 4.4, this implies
δ□(V,Uq⋆)=0.
Finally,
V−U≥0
pointwise and
∫[0,1]2(V−U)=∫[0,1]2V−∫[0,1]2U=0.
A nonnegative integrable function with integral 0 is zero almost everywhere. So
U=V almost everywhere.
Therefore
δ□(U,Uq⋆)=0,
contradicting the earlier bound δ□(U,Uq⋆)≥ε in (4.5).
This contradiction shows that
mε<1−q1.
Now define
γr(ε):=(1−q1)−mε>0.
This is exactly the desired gap.
Lemma 4.9 (Entropy gap away from Bq⋆). Fix r≥3 and set q=r−1. For every ε>0 there exists cr,ε>0 such that every graphon W satisfying
t(Kr,W)=0,δ□(W,Bq⋆)≥ε
also satisfies
Ent(W)≤2ln2(1−q1)−cr,ε.
Proof. Fix ε>0 and let W be a graphon with
t(Kr,W)=0,δ□(W,Bq⋆)≥ε.
As before, set
S:={(x,y)∈[0,1]2:W(x,y)>0},U:=1S.
The function U is measurable, {0,1}-valued, and symmetric almost everywhere; hence it is a graphon.
Since t(Kr,W)=0, Remark 3.4 implies that
1≤a<b≤r∏W(xa,xb)=0
for almost every (x1,…,xr)∈[0,1]r. If
1≤a<b≤r∏U(xa,xb)=1,
then every factor W(xa,xb) is strictly positive, and therefore
1≤a<b≤r∏W(xa,xb)>0.
This can happen only on a null set. Hence
t(Kr,U)=0.
Moreover, W=0 on Sc, while h(u)≤ln2 for every u∈[0,1]. Therefore
Thus, in Case 1, the claimed bound holds with entropy loss 2ln2γr(ε/2).
Case 2: δ□(U,Uq⋆)<ε/2.
Choose U⋆∈Uq⋆ such that
δ□(U,U⋆)<2ε.
Set
V⋆:=21U⋆.
By Notation 4.2, the family Bq⋆ consists exactly of graphons that are equal almost everywhere to 21U for some U∈Uq⋆. Since U⋆∈Uq⋆ and V⋆=21U⋆, it follows that V⋆∈Bq⋆. Since δ□(W,Bq⋆)≥ε, we have
δ□(W,V⋆)≥ε.
Also, by homogeneity of the cut distance,
δ□(21U,V⋆)=δ□(21U,21U⋆)=21δ□(U,U⋆)<4ε.
So the triangle inequality gives
δ□(W,21U)≥δ□(W,V⋆)−δ□(21U,V⋆)>43ε.
Since
δ□(W,21U)≤W−21U□≤W−21U1,
it follows that
W−21U1>43ε.
Because U=1S and W=0 on Sc, this means
∫SW−21>43ε.
Since U is {0,1}-valued and is a graphon of zero Kr-density, Lemma 4.4 gives
λ2(S)=∫[0,1]2U≤1−q1.
By Lemma 3.12(i),
(∫SW−21)2≤λ2(S)∫S(W−21)2.
Therefore
∫S(W−21)2≥1−q1(43ε)2.
YASMIN TOUSINEJAD AND VERA KOPONEN
For every (x,y)∈S, we also have W(x,y)∈[0,1]. Hence Lemma 3.16 gives
h(W(x,y))≤ln2−2(W(x,y)−21)2forevery(x,y)∈S.
Using this inequality in the entropy identity above, we obtain
The graphon removal lemma in [14, Lem. 2.3] is stated with the strict assumption t(Kr,W)<δ. We will use the following non-strict version, obtained by applying that lemma with a smaller threshold.
Lemma 4.10 (Graphon Kr removal). Fix r≥3. For every η>0 there exists δ=δKr(η)>0 such that whenever a graphon W satisfies
t(Kr,W)≤δ,
there exists a graphon W′ with
t(Kr,W′)=0,∥W−W′∥1≤η.
Proof. Apply [14, Lem. 2.3] with F=Kr and error η. This gives a number δ0>0 such that, whenever
t(Kr,W)<δ0,
there is a graphon W′ satisfying
t(Kr,W′)=0and∥W−W′∥1≤η.
Now define
δKr(η):=2δ0.
If t(Kr,W)≤δKr(η), then
t(Kr,W)≤2δ0<δ0.
Thus W satisfies the strict hypothesis of [14, Lem. 2.3], applied with F=Kr and error η. Hence there exists a graphon W′ such that
t(Kr,W′)=0and∥W−W′∥1≤η.
This is the required graphon.
□
Lemma 4.11 (Entropy is continuous in L1). For graphons U and V, and for every α>0,
(4.7)
∣Ent(U)−Ent(V)∣≤21ω(α)+2ln2α∥U−V∥1,
where
ω(α):=sup{∣h(x)−h(y)∣:x,y∈[0,1],∣x−y∣≤α}.
In particular, Ent is uniformly continuous on W with respect to ∥⋅∥1. For every τ>0 there exists η>0 such that, for all graphons U and V,
Recall that we have fixed r≥3 and w>0 and we continue to let q:=r−1. We first prove some technical results in sections 5.1 - 5.3. Then we prove parts (i), (ii), and (iii) of Theorem 2.7, in this order, in sections 5.4 - 5.7.
Notation 5.1 (Balanced q-partite entropy level). We write
(5.1)
sq:=2ln2(1−q1).
Corollary 2.6 shows that the graph-independent factor ewnr disappears after normalization. Thus the probability measure Pn,r is determined by the reduced masses
exp(−r!wKr(G)),G∈Gn.
By Lemma 3.18,
t(Kr,WG)=nrr!Kr(G).
Consequently,
(5.2)
exp(−r!wKr(G))=exp(−wt(Kr,WG)nr).
This identity connects the finite-graph penalty with the graphon arguments in this section.
5.1. A general vanishing lemma. The next lemma records the counting estimate that the graphon Kr-homomorphism density t(Kr,WGn)=r!Kr(Gn)/nr goes to zero in probability for every fixed r≥3 and every fixed w>0, where Gn∼Pn,r.
Lemma 5.2. Fix r≥3 and w>0. For every ε>0 and every n∈N, define
because this event is {Gn∈An,δ/r!(r)}. Thus t(Kr,WGn) converges to 0 in probability.
Proof. By (2.3),
Pn,r(G)=Zn,re−r!wKr(G).
The denominator is at least 1, because a graph with no edges has no copy of Kr and contributes 1. So for every event A⊆Gn,
Pn,r(A)=G∈A∑Pn,r(G)≤G∈A∑e−r!wKr(G).
Apply this with A=An,ε(r). On this event we have Kr(G)≥εnr, hence
Pn,r(An,ε(r))≤∣An,ε(r)∣e−r!wεnr≤∣Gn∣e−r!wεnr.
YASMIN TOUSINEJAD AND VERA KOPONEN
Since ∣Gn∣=2(2n), we have
∣Gn∣e−r!wεnr=exp((2n)ln2−r!wεnr).
Because r≥3, the term −r!wεnr is of strictly higher order than (2n)ln2=O(n2), so the exponent has limit −∞.
5.2. Graphs with a fixed positive clique density. A fixed positive lower bound on t(Kr,WG) gives a negative term of order nr in the exponent. The total number of labeled graphs is only exp(O(n2)). Since r≥3, the penalty is stronger than this counting term.
Lemma 5.3 (Fixed positive clique density is negligible). Fix 0<δ≤1. For every M>0, there exists N=N(M,δ,r,w) such that, for every n≥N,
(5.3)
G∈Gnt(Kr,WG)≥δ∑exp(−r!wKr(G))≤exp(−Mn2).
Proof. If t(Kr,WG)≥δ, then (5.2) gives
exp(−r!wKr(G))≤exp(−wδnr).
Since ∣Gn∣=2(2n), the total contribution of graphs satisfying t(Kr,WG)≥δ is bounded by
(5.4)
G∈Gnt(Kr,WG)≥δ∑exp(−r!wKr(G))≤exp(En),
where
(5.5)
En:=(2n)ln2−wδnr.
We now compare En with the n2 scale. By (5.5),
n2En=n2(2n)ln2−wδnr−2.
Since
n2(2n)=2n2n(n−1)=21−2n1,
we get
(5.6)
n2En=2ln2−2nln2−wδnr−2.
Because r≥3 and wδ>0,
n→∞lim(2ln2−2nln2−wδnr−2)=−∞.
Therefore, by (5.6), there is N=N(M,δ,r,w) such that, for every n≥N,
n2En≤−M.
Equivalently,
En≤−Mn2.
Combining this with (5.4), we obtain, for every n≥N,
Thus graphs with t(Kr,WG)≥δ have negligible total reduced mass on the n2 scale, for every fixed δ>0. The main contribution must come from graphs with small empirical Kr-density. Lemma 4.5 identifies the largest entropy at zero Kr-density, and Lemma 4.12 gives a strict entropy loss away from Bq∗ when the Kr-density is sufficiently small.
5.3. Counting cut-closed families. We next convert entropy bounds for graphons into counting bounds for labeled graphs.
Definition 5.4 (Cut-closed family of graphons). A family F⊆W is called cut-closed if, whenever Wm∈F for every m and
m→∞limδ□(Wm,W)=0,
then W∈F.
Lemma 5.5. Let F⊆W be cut-closed, and let F be its image in W. Then the following statements hold.
(1) If W∈F, V∈W, and δ□(W,V)=0, then V∈F.
(2) For every n∈N and every G∈Gn,
WG∈F⟺WG∈F.
(3) The set F is closed in the metric d□.
Proof. For the first statement, take the constant sequence Wm=W. Then
m→∞limδ□(Wm,V)=0,
so cut-closedness gives V∈F.
The forward implication in the second statement follows from the definition of F. Conversely, suppose that WG∈F. Then some V∈F satisfies δ□(WG,V)=0. The first statement gives WG∈F.
For the third statement, let Wm∈F and suppose that
m→∞limd□(Wm,W)=0.
Choose a representative W of W. For each m, choose a representative Vm∈F of Wm. By the definition of d□,
δ□(Vm,W)=d□(Wm,W).
Hence
m→∞limδ□(Vm,W)=0.
Cut-closedness gives W∈F, and therefore W∈F.
Notation 5.6 (Uniform measure on labeled graphs). For each n∈N, let Pnunif be the uniform probability measure on Gn. Since Gn contains 2(2n) graphs, we have
(5.7)
Pnunif(A)=2−(2n)∣A∣,A⊆Gn.
We consider Gn as a probability space equipped with Pnunif, and let Rn be the canonical random graph on this space; thus
Rn(G)=GforeveryG∈Gn.
Equivalently, each possible edge is present independently with probability 21. Hence
Rn∼G(n,21).
YASMIN TOUSINEJAD AND VERA KOPONEN
For every A⊆W, the event WRn∈A consists exactly of the graphs whose empirical graphon class belongs to A. Hence
The same identity holds for u=0 and u=1 under the convention 0ln0=0. Hence it holds for every u∈[0,1]. Integrating this identity gives
I21(W)=2ln2−Ent(W).
By Lemma 3.17, entropy is unchanged under zero cut distance. Hence I21 is also unchanged under zero cut distance, so I21(W) is well-defined and (5.10) follows.
Under the measure Pnunif from Notation 5.6, the random graph Rn has distribution G(n,21). We may therefore apply [10, Thm. 2.3] with p=21. The graphon associated with a finite graph in [10, Eq. (4)] agrees almost everywhere with the empirical graphon from Definition 3.2. By Remark 3.9, the reduced graphon space used here is the same reduced cut-metric space as the one used in [10]. Finally, for p=21, the rate function in [10, Eq. (7)] is exactly (5.9). The closed-set upper bound in [10, Thm. 2.3], together with (5.8), therefore gives (5.11).
Lemma 5.8. Let F⊆W be closed. For every n∈N,
(5.12)
Pnunif({G∈Gn:WG∈F})=2−(2n){G∈Gn:WG∈F}.
Consequently,
(5.13)
n→∞limsupn21ln{G∈Gn:WG∈F}≤W∈FsupEnt(W).
If F=∅, then for every γ>0 there is N=N(F,γ) such that, for every n≥N,
(5.14)
{G∈Gn:WG∈F}≤exp([W∈FsupEnt(W)+γ]n2).
Proof. Equation (5.12) follows immediately from the definition (5.7).
Set
Nn(F):={G∈Gn:WG∈F}.
Using (5.12), with ln0=−∞ when Nn(F)=0, we obtain
Finally, suppose that F=∅ and fix γ>0. By (5.13), for all sufficiently large n,
n21lnNn(F)≤W∈FsupEnt(W)+γ.
Exponentiating proves (5.14).
Lemma 5.9. Let F⊆W be a nonempty cut-closed family. For every γ>0, there exists N=N(F,γ) such that, for every n≥N,
(5.15)
∣{G∈Gn:WG∈F}∣≤exp([W∈FsupEnt(W)+γ]n2).
Equivalently, there is a nonnegative sequence αn(F) satisfying
n→∞limαn(F)=0
such that
(5.16)
∣{G∈Gn:WG∈F}∣≤exp([W∈FsupEnt(W)+αn(F)]n2)
for every sufficiently large n.
Proof. Let F be the image of F in W. Lemma 5.5 shows that F is closed and that
WG∈F⟺WG∈F.
Therefore
∣{G∈Gn:WG∈F}∣={G∈Gn:WG∈F}.
Entropy is constant on every zero-cut-distance class by Lemma 3.17, so
W∈FsupEnt(W)=W∈FsupEnt(W).
Now apply (5.14) to F. This proves (5.15).
For the second form, set
SF:=W∈FsupEnt(W)
YASMIN TOUSINEJAD AND VERA KOPONEN
and
Nn(F):=∣{G∈Gn:WG∈F}∣.
If Nn(F)=0, set bn=0. If Nn(F)>0, set
bn:=max{0,n21lnNn(F)−SF}.
We now show that limn→∞bn=0. Fix γ>0. By (5.15), for all sufficiently large n,
Nn(F)≤exp((SF+γ)n2).
If Nn(F)=0, then bn=0. If Nn(F)>0, the last inequality gives
n21lnNn(F)−SF≤γ,
and therefore
0≤bn≤γ.
Since γ>0 was arbitrary, it follows that
n→∞limbn=0.
Set
αn(F):=bn+n1.
Then
n→∞limαn(F)=0.
If Nn(F)>0, the definition of bn gives
n21lnNn(F)≤SF+bn≤SF+αn(F).
Exponentiating gives (5.16). If Nn(F)=0, then (5.16) is trivial. Thus (5.16) holds for every sufficiently large n.
Lemma 5.10. Fix r≥3 and set q=r−1. The following subsets of W are cut-closed.
(1) For every δ∈[0,1],
Fδ(r):={W∈W:t(Kr,W)≤δ}.
(2) For every ε>0,
Dε,q:={W∈W:δ□(W,Bq⋆)≥ε}.
(3) For every δ∈[0,1] and ε>0,
Fδ,ε(r,q):=Fδ(r)∩Dε,q.
Proof. (1) Fix δ∈[0,1]. We show that
Fδ(r)={W∈W:t(Kr,W)≤δ}
is cut-closed.
Let (Wm)m≥1 be a sequence of graphons in Fδ(r), and suppose that
m→∞limδ□(Wm,W)=0
for some graphon W∈W.
Since each Wm belongs to Fδ(r), we have
t(Kr,Wm)≤δforeverym.
By Lemma 3.14, the map
W↦t(Kr,W)
is continuous in cut distance. Hence
m→∞limt(Kr,Wm)=t(Kr,W).
Taking the limit in
t(Kr,Wm)≤δ
gives
t(Kr,W)≤δ.
Therefore
W∈Fδ(r).
So Fδ(r) is cut-closed.
(2) Fix ε>0. We prove that
Dε,q={W∈W:δ□(W,Bq⋆)≥ε}
is cut-closed.
If H is a nonempty family of graphons, then the function
W↦δ□(W,H)
is continuous in cut distance. Indeed, let U,V∈W. For every H∈H, the triangle inequality gives
δ□(U,H)≤δ□(U,V)+δ□(V,H).
Taking the infimum over all H∈H gives
δ□(U,H)≤δ□(U,V)+δ□(V,H).
So
δ□(U,H)−δ□(V,H)≤δ□(U,V).
Now if we switch the roles of U and V, we get
δ□(V,H)−δ□(U,H)≤δ□(U,V).
Therefore
∣δ□(U,H)−δ□(V,H)∣≤δ□(U,V).
Thus W↦δ□(W,H) is continuous.
Now apply this with
H=Bq⋆.
This family is nonempty, because Wq⋆∈Bq⋆ by Notation 4.3. Hence
W↦δ□(W,Bq⋆)
is continuous in cut distance.
Now let (Wm)m≥1 be a sequence of graphons in Dε,q, and suppose that
m→∞limδ□(Wm,W)=0
for some graphon W∈W.
Since each Wm belongs to Dε,q, we have
δ□(Wm,Bq⋆)≥εforeverym.
By the continuity established above, we have
m→∞limδ□(Wm,Bq⋆)=δ□(W,Bq⋆).
Taking the limit in
δ□(Wm,Bq⋆)≥ε
gives
δ□(W,Bq⋆)≥ε.
YASMIN TOUSINEJAD AND VERA KOPONEN
Therefore
W∈Dε,q.
So Dε,q is cut-closed.
(3) Fix δ∈[0,1] and ε>0. We show that
Fδ,ε(r,q)=Fδ(r)∩Dε,q
is cut-closed.
Let (Wm)m≥1 be a sequence of graphons in Fδ,ε(r,q), and suppose that
m→∞limδ□(Wm,W)=0
for some graphon W∈W.
Since
Wm∈Fδ,ε(r,q)=Fδ(r)∩Dε,q,
we have
Wm∈Fδ(r)andWm∈Dε,q
for every m.
By item (1), Fδ(r) is cut-closed. Hence
W∈Fδ(r).
By item (2), Dε,q is cut-closed. Hence
W∈Dε,q.
Therefore
W∈Fδ(r)∩Dε,q=Fδ,ε(r,q).
So Fδ,ε(r,q) is cut-closed.
5.4. The reduced free-energy limit
Lemma 5.11 (Balanced multipartite lower bound). Let n∈N, and use
n=qm+a,m,a∈Z≥0,0≤a<q.
Then, with sq as in Notation 5.1,
(5.17)
Zn,r≥exp(sqn2−2ln2a(1−qa))≥exp(sqn2−8qln2).
Proof. Write [n] as the disjoint union of q possibly empty sets
[n]=V1⊔⋯⊔Vq
whose sizes differ by at most one. Thus a sets have size m+1, and the remaining q−a sets have size m. Put
ni:=∣Vi∣,i=1,…,q.
Let M be the number of unordered pairs of vertices lying in different parts. Then
M=1≤i<j≤q∑ninj.
Since
(i=1∑qni)2=i=1∑qni2+21≤i<j≤q∑ninj,
we have
(5.18)
M=21(n2−i=1∑qni2).
We now compute the sum of the squared part sizes. By the choice of the partition,
i=1∑qni2=(q−a)m2+a(m+1)2=qm2+2am+a.
On the other hand, since n=qm+a,
qn2=qm2+2am+qa2.
Therefore
(5.19)
i=1∑qni2=qn2+a(1−qa).
Substituting (5.19) into (5.18) gives
(5.20)
M=21(1−q1)n2−21a(1−qa).
Now choose an arbitrary subset of these M possible between-part edges, and put no edges inside the parts. This gives exactly 2M labeled graphs on [n].
Every graph constructed in this way is q-partite. Hence every clique in such a graph uses at most one vertex from each part, so every clique has size at most q. Since q=r−1, none of these graphs contains a copy of Kr. Therefore each of these graphs has reduced mass
exp(−r!wKr(G))=1.
Thus all these graphs contribute 1 each to Zn,r, and so
Zn,r≥2M.
Multiplying (5.20) by ln2 and then using (5.1), we obtain
This holds for every fixed L>0. We may therefore let L→∞. Equation (5.22) then gives
n→∞limsupFn,r(w)≤sq.
Lower bound. A graph whose edges lie only between the parts of a q-partite partition contains no copy of Kr, because q=r−1. Such a graph therefore has reduced mass 1. Lemma 5.11 counts these graphs and gives
Fn,r(w)≥sq−8n2qln2.
Taking the lower limit gives
n→∞liminfFn,r(w)≥sq.
The upper and lower bounds now agree. Therefore
n→∞limFn,r(w)=sq=2ln2(1−q1).
5.5. Exponential concentration in cut distance. We now prove Theorem 2.7(ii). Fix ε>0. The event we need to estimate is
δ□(WGn,Bq⋆)≥ε.
After choosing a small number δ>0, we separate this event according to the empirical clique density t(Kr,WGn). The part with
t(Kr,WGn)≥δ
has very small total reduced mass by Lemma 5.3. The remaining part has
t(Kr,WGn)<δandδ□(WGn,Bq⋆)≥ε.
For this part, Lemma 4.12 gives an entropy loss, and the counting bound in Lemma 5.9 turns that entropy loss into an exponential probability bound.
As explained in Remark 4.7, [9, Thm. 3.2] gives concentration for each fixed clique coefficient L, but it does not provide concentration constants uniform in L. Since the present model follows the diagonal sequence Ln=wnr−2, for which limn→∞Ln=+∞, the proof below establishes the required uniform diagonal estimate directly.
Proof of Theorem 2.7(ii). Fix ε>0, and let Gn∼Pn,r. Choose
δ0=δr,ε>0andc′=cr,ε′>0
from Lemma 4.12, and set
δ:=min{δ0,1}.
The conclusion of Lemma 4.12 still holds under the stronger condition t(Kr,W)≤δ.
For every sufficiently large n, both terms on the right are at most exp(−c′n2/2). Increasing the threshold for n once more gives
2exp(−c′n2/2)≤exp(−c′n2/4).
Therefore, for every sufficiently large n,
P(δ□(WGn,Bq⋆)≥ε)≤exp(−c′n2/4).
The theorem follows with c=c′/4. The constant c depends only on ε and r. The threshold for n may also depend on w, through Lemma 5.3.
5.6. Probability bounds needed for the rounding argument
Lemma 5.12. The following probability bounds hold:
(i) Markov's inequality. If Y≥0 almost surely and t>0, then
P(Y≥t)≤tE[Y].
(ii) Hoeffding’s inequality. Let m≥1, and let Y1,…,Ym be independent random variables. Suppose that, for each i∈[m], there are real numbers ai≤bi such that
ai≤Yi≤bi
almost surely. Set
V:=i=1∑m(bi−ai)2.
If V > 0, then, for every t≥0,
P(i=1∑mYi−i=1∑mE[Yi]≥t)≤2exp(−V2t2).
If V = 0, then
i=1∑mYi=i=1∑mE[Yi]
almost surely. Consequently, for every t>0,
P(i=1∑mYi−i=1∑mE[Yi]≥t)=0.
In particular, if 0≤Yi≤1 almost surely for every i∈[m], and if
S:=i=1∑mYi,
then, for every t≥0,
P(∣S−E[S]∣≥t)≤2exp(−m2t2).
(iii) McDiarmid's inequality. Let m≥1, let S1,…,Sm be finite sets, and let X1,…,Xm be independent random variables such that
Xi∈Si
almost surely for every i∈[m]. Let
f:S1×⋯×Sm→R
be a function. Assume that there is a number L>0 such that changing only one coordinate can change the value of f by at most L. More precisely,
∣f(x1,⋯,xi,⋯,xm)−f(x1,⋯,xi′,⋯,xm)∣≤L
for every i∈[m], every xi,xi′∈Si, and every fixed choice of the other coordinates. Then, for every t≥0,
Proof. Item (i) is Markov's inequality; see [23, Thm. 3.1], with the notation there renamed as X = Y and a = t.
For item (ii), first assume that V > 0.
If t>0, Hoeffding's inequality [23, Thm. 4.14] gives
P(i=1∑mYi−i=1∑mE[Yi]≥t)≤2exp(−V2t2).
If t = 0, the same bound is also true, because the probability on the left is at most 1, while the right-hand side is 2.
Now assume that
V=0.
Then
i=1∑m(bi−ai)2=0.
Each term in this sum is nonnegative, so
bi−ai=0foreveryi∈[m].
Thus ai=bi for every i. Since
ai≤Yi≤bi
almost surely, each Yi is almost surely constant. Hence
Yi=E[Yi]almostsurelyforeveryi∈[m].
Adding over i=1,…,m gives
i=1∑mYi=i=1∑mE[Yi]
almost surely. Therefore, for every t>0,
P(i=1∑mYi−i=1∑mE[Yi]≥t)=0.
For the last part of item (ii), assume that
0≤Yi≤1almostsurelyforeveryi∈[m],
and set
S:=i=1∑mYi.
Taking
ai=0andbi=1
for every i gives
V=i=1∑m(bi−ai)2=i=1∑m1=m.
The bound already proved therefore gives, for every t≥0,
P(∣S−E[S]∣≥t)≤2exp(−m2t2).
For item (iii), the bounded-difference condition is exactly the hypothesis of McDiarmid's inequality in [23, Sec. 13.5.1, Thm. 13.7]. Applying that theorem with n=m, c=L, and λ=t gives the stated bound for t>0. The theorem applies here because the random variables take values in finite sets. For t=0, the bound is immediate, since the right-hand side is 2.
5.7. Transforming cut-distance closeness to a vertex partition. The next lemma turns cut-distance closeness to Bq⋆ into a partition of the finite vertex set. It controls the part sizes, the edge density between every pair of parts, and the total number of edges inside the parts.
Lemma 5.13. Let q≥2 and 0<ε≤1, and set
ρ:=100q2ε.
There exists Ndet=Ndet(ε,q) such that the following holds for every n≥Ndet. If G is a graph on [n] and
Moreover, if G′ is obtained from G by deleting all edges whose endpoints lie in the same part, then G′ is q-partite and
dedit(G,G′)≤10qε.
Proof. We use a random coloring argument and color the vertices independently using probabilities obtained from the graphon relabeling. We then show that the desired properties hold with positive probability and fix one coloring for which they hold.
Let (aij)i,j=1n be the adjacency matrix of G. Thus
aij=aji,aii=0.
Let Wq⋆ and its canonical blocks A1,…,Aq be as in Notation 4.3. By that notation,
δ□(WG,Bq⋆)=δ□(WG,Wq⋆)<ρ.
Since the infimum in the definition of cut distance is strictly smaller than ρ, there is a measure-preserving bijection ψ:[0,1]→[0,1] such that
∥WG−(Wq⋆)ψ∥□<ρ.
Set
ϕ:=ψ−1.
Since the cut norm is invariant under measure-preserving relabelings, we get
Thus n2/(2q2) is the deterministic target value; in general it is not the exact value of Ecol[Fα,β(Σ)].
Changing one coordinate of C can change the counted status only of edges incident to the corresponding vertex. There are at most n−1 such edges, and each contributes at most 1 to the change. Hence Fα,β changes by at most n−1, and therefore by at most n. By Lemma 5.12(iii), with
The estimates above show that this partition has the required part sizes, the required between-part edge densities, and the required bound on the number of edges inside the parts.
Finally, let G′ be obtained from G by deleting all edges inside the parts V1,…,Vq. Then G′ is q-partite, and
∣E(G)△E(G′)∣=α=1∑qeG(Vα)≤10qεn2.
By the definition of dedit in Section 1,
dedit(G,G′)=n2∣E(G)△E(G′)∣≤10qε.
We now use the cut-distance concentration theorem to prove the finite-graph structure theorem.
Proof of Theorem 2.7(iii). Fix ε>0. Since Lemma 5.13 is stated for parameters at most 1, set
η:=min{ε,1},ρ:=100q2η.
Let Gn∼Pn,r. Applying Theorem 2.7(ii) with the parameter ρ, we get constants
c0=c0(ρ,r)>0andN0=N0(ρ,r,w)
such that, for every n≥N0,
P(δ□(WGn,Bq⋆)≥ρ)≤exp(−c0n2).
Let
Ndet=Ndet(η,q)
be the threshold from Lemma 5.13, and define
n0:=max{N0,Ndet}.
Then, for every n≥n0, with probability at least 1−exp(−c0n2), we have
δ□(WGn,Bq⋆)<ρ.
On this event, Lemma 5.13, applied with η in place of ε, gives a partition
[n]=V1⊔⋯⊔Vq
satisfying all the conclusions of that lemma with parameter η. Since
η≤ε,
the same partition satisfies the required bounds in Theorem 2.7(iii) with parameter ε.
YASMIN TOUSINEJAD AND VERA KOPONEN
In particular, if Gn′ is obtained from Gn by deleting all edges whose endpoints lie in the same part, then Gn′ is q-partite and
dedit(Gn,Gn′)≤10qη≤10qε≤2ε,
because q≥2.
Thus the theorem holds with
c:=c0.
Since ρ=η/(100q2), and since q=r−1, the constant c depends only on ε and r. The threshold n0 may also depend on w.
6. EXAMPLES AND CONSEQUENCES
We first discuss the boundary case r = 2 and the first case covered by Theorem 2.7, namely r = 3. We then show that the induced subgraph on any fixed number of labeled vertices converges in distribution to a stochastic block model, derive the limiting clique densities, and give an exponential bound for colorability with fewer than r - 1 colors. Finally, we extend the model to several fixed clique penalties.
6.1. The case r = 2. The notions defined in Section 2 are straightforwardly extended to the case r = 2, and we get
N2(G)=n2−2∣E(G)∣,
and
Zn,2=(1+e−2w)(2n).
The possible edges are therefore independent, and each is present with probability
1+e−2we−2w=1+e2w1.
Thus Pn,2 is exactly the G(n,1/(1+e2w)) distribution. In particular, the (r−1)-partite behavior in Theorem 2.7 begins at r=3.
6.2. The case r = 3. Here q=r−1=2. By Corollary 2.6, the reduced mass of a graph G is
e−6wK3(G).
Thus triangles are penalized. By Theorem 2.7(ii), the empirical graphon converges in probability, in cut distance, to the class represented by W2⋆. The canonical representative W2⋆ has two equal blocks and takes value 0 within each block and 1/2 between the blocks.
6.3. A stochastic block model limit. For m∈N and probability measures α and β on Gm, their total variation distance is
dTV(α,β):=21J∈Gm∑∣α(J)−β(J)∣.
Definition 6.1. For m∈N, J∈Gm, and a graphon W, define the induced density of J in W by
This is the induced-density formula in [22, Sec. 7.2, Eq. (7.3)]. Under the graphon sampling construction from Section 3, it equals the probability of obtaining the labeled graph J; see [22, Sec. 10.1, immediately before Eq. (10.3)].
Corollary 6.2 (Stochastic block model limit for fixed induced subgraphs). Fix an integer r≥3, set q=r−1, and let w>0 and m∈N. For every n≥m, let Gn∼Pn,r, and let Hn,m be the subgraph of Gn induced by [m].
Define a random graph Sm(q) on [m] as follows. Choose C1,…,Cm independently and uniformly from [q]. Given these labels, include the possible edges independently, with probability
By [7, Thm. 3.7(a)], each homomorphism density in this sum is continuous in cut distance. Therefore tind(J,⋅) is also continuous in cut distance.
Theorem 2.7(ii) and the final identity in Notation 4.3 give, for every ε>0,
n→∞limP(tind(J,WGn)−tind(J,Wq⋆)≥ε)=0.
Since the absolute difference is bounded by 1, for every ε>0, its expectation is at most ε plus the probability that it is at least ε. Hence,
(6.1)
n→∞limE[tind(J,WGn)−tind(J,Wq⋆)]=0.
Define a probability measure νˉn,m on Gm by
νˉn,m(J):=E[tind(J,WGn)].
By (2.3), the probability assigned to a graph G depends only on Kr(G), which is invariant under vertex relabeling. Hence the distribution of Gn is invariant under vertex relabeling. Consequently, if ι:[m]→[n] is an independent uniformly chosen injection, then Hn,m has the same distribution as the graph on [m] in which {i,j} is an edge exactly when {ι(i),ι(j)}∈E(Gn).
On the other hand, sampling from WG corresponds to choosing vertices of G independently, so the same vertex may be chosen more than once. The probability of choosing the same vertex more than once is at most (2m)/n. Therefore, by [22, Eq. (10.1)],
dTV(νn,m,νˉn,m)≤n(2m).
By Notation 4.3, graphon sampling from Wq⋆ is exactly the construction of Sm(q), therefore
Any two distinct edge indicators are independent. This is immediate for vertex-disjoint edges because they use different labels and different edge choices. If the edges share a vertex, say {i,j} and {i,k}, then
PSBM(Xij=Xik=1)=(qq−1)241=(2qq−1)2,
which is the product of their individual probabilities.
However, if m≥3, the three indicators associated with the triangle on {1,2,3} are not independent as a triple, since
PSBM(X12=X13=X23=1)=8q2(q−1)(q−2),
whereas independence would give
(2qq−1)3.
Indeed,
(2qq−1)3−8q2(q−1)(q−2)=8q3q−1>0.
Thus any two edge indicators are independent, but the three triangle indicators are not independent as a triple. In particular, Sm(q) is not an Erdős-Rényi graph when m≥3.
6.4. Limiting clique densities. For any fixed integer r≥3 we now determine the limiting density, with respect to Pn,r, of Ks for all s≥2.
Corollary 6.4. Fix an integer r≥3 and let w>0. Let Gn∼Pn,r, and set q=r−1. For every fixed integer s≥2,
Equivalently, choose x1,…,xs independently and uniformly at random from [0,1]. By Notation 4.3, the index of the canonical block containing each xi is uniform on [q], and these block indices are independent. Since Wq⋆ is zero within each block, the integrand is nonzero only when x1,…,xs lie in distinct blocks. The set of such points has measure
qsq(q−1)⋯(q−s+1).
On this set, every factor in the integrand is equal to 1/2. Since Ks has (2s) edges, it follows that
t(Ks,Wq⋆)=qs2(2s)q(q−1)⋯(q−s+1).
If s>q, then among any s points x1,…,xs, at least two lie in the same canonical block. The corresponding factor in the defining integral is zero. Hence
t(Ks,Wq⋆)=0.
This proves (6.2).
By Lemma 3.18, with s in place of r, every graph G∈Gn satisfies
t(Ks,WG)=nss!Ks(G).
Lemma 3.14 and Notation 4.3 therefore give
nss!Ks(G)−t(Ks,Wq⋆)≤(2s)δ□(WG,Bq⋆).
Thus, if the left-hand side is at least η, then
δ□(WG,Bq⋆)≥(2s)η.
Applying Theorem 2.7(ii) with η/(2s) in place of ε proves (6.3).
Finally, for n≥s, set
Xn:=nss!Ks(Gn),an:=nsn(n−1)⋯(n−s+1).
Then
(sn)Ks(Gn)=anXn.
Equation (6.3) says that Xn converges in probability to t(Ks,Wq⋆). Since an>0 and
n→∞liman=1,
the quotient Xn/an converges in probability to the same limit. This is exactly (6.4). ☐
YASMIN TOUSINEJAD AND VERA KOPONEN
Example 6.5. For example, let r=4, so that q=3, and let Gn∼Pn,4. Then
Thus a positive proportion of triples still form triangles, even though the proportion of four-element sets that form a copy of K4 tends to zero.
6.5. Colorability with fewer than r−1 colors.
Corollary 6.6. Fix an integer r≥3 and let w>0. Set q=r−1, and let Gn∼Pn,r. Recall that χ(Gn) denotes the chromatic number of Gn. For every n∈N and every integer k with 1≤k<q,
(6.5)
P(χ(Gn)≤k)≤exp(−2kq(q−k)ln2n2+nlnk+8qln2).
Consequently, there are constants c=c(r,k)>0 and N=N(r,k)∈N such that
P(χ(Gn)≤k)≤e−cn2foreveryn≥N.
In particular, when r≥4, the probability that Gn is (r−2)-partite tends to zero exponentially in n2.
Proof. Fix a map from [n] to a set of k colors, and let m1,…,mk be the sizes of its color classes. A graph for which this map is a proper coloring can have edges only between different classes. The number of pairs in different classes is
21(n2−i=1∑kmi2)≤21(1−k1)n2,
where the inequality follows from Lemma 3.12(ii). Hence at most
2(1−1/k)n2/2
graphs have this fixed proper coloring. Since there are kn such maps,
(6.6)
∣{G∈Gn:χ(G)≤k}∣≤kn2(1−1/k)n2/2.
A k-colorable graph has no clique with more than k vertices. Since k<q<r, every graph counted in (6.6) is Kr-free and has reduced mass 1. Hence (6.6) and (5.17) give
Using (5.1) gives (6.5). Since q−k>0, the coefficient of n2 is negative, which proves the final estimate.
6.6. Several fixed clique penalties. We now consider a set-up with soft constraints for several clique sizes. Fix an integer ℓ≥3. For each k∈{3,…,ℓ} let a weight wk≥0 be fixed. Assume that at least one of these wk is positive and set
r:=min{k∈{3,…,ℓ}:wk>0},q:=r−1.
Thus wk=0 for k<r. For all k∈{3,…,ℓ} and every G∈Gn, define
Nk(G):=nk−k!Kk(G).
Hence Nk(G) is the number of k-tuples of vertices of G that do not form a k-clique in G. We now define the “unnormalized mass” of G∈Gn as the number
Theorem 6.7 (The smallest positively weighted clique determines the limit structure). Let Gnmc∼Pnmc, that is, Gn is a random graph from Gn under the probability distribution Pnmc. Then the following statements hold:
(i) limn→∞Fnmc=2ln2(1−r−11).
(ii) For every ε>0, there are constants
c=c(ε,r)>0andN=N(ε,r,wr)
such that, for every n≥N,
P(δ□(WGnmc,Bq⋆)≥ε)≤e−cn2.
(iii) For every ε>0, there are constants
c=c(ε,r)>0andN=N(ε,r,wr)
such that, for every n≥N, with probability at least 1−e−cn2, there is a partition
[n]=V1⊔⋯⊔Vq
with the following properties:
(a) For every i∈[q],
∣∣Vi∣−n/q∣≤εn.
(b) For all distinct i,j∈[q],
∣Vi∣∣Vj∣eGnmc(Vi,Vj)−21≤ε.
(c) The total number of edges inside parts is
i=1∑qeGnmc(Vi)≤10qεn2.
(d) The total density of edges inside the parts is at most ε:
∑i=1q(2∣Vi∣)∑i=1qeGnmc(Vi)≤ε.
YASMIN TOUSINEJAD AND VERA KOPONEN
If Gn′ is obtained by deleting all edges whose endpoints lie in the same part, then Gn′ is q-partite and
dedit(Gnmc,Gn′)≤10qε≤2ε.
In particular, the reduced free-energy limit and the cut-distance limit depend on the weight vector (w3,…,wℓ) only through r. Once r and wr are fixed, the constants in parts (ii) and (iii) can be chosen independently of ℓ and of the weights wr+1,…,wℓ.
Proof. Let Zn,r, Fn,r(wr), and Pn,r denote the reduced partition function, reduced free energy, and probability measure of the single- Kr model with weight wr, and set
Cq:=8qln2.
Since the higher weights are nonnegative, every G∈Gn satisfies
(6.8)
0<Mnmc(G)≤exp(−r!wrKr(G))≤1.
Every graph in the balanced q-partite family used in the proof of Lemma 5.11 is Kr-free and hence Kk-free for every k≥r. Its multi-clique reduced mass is therefore 1. Let
sq:=2ln2(1−q1).
The same lower-bound construction, together with (6.8), gives
(6.9)
exp(sqn2−Cq)≤Znmc≤Zn,r.
This comparison explains the role of the smallest positively weighted clique; the lower bound is unaffected by any clique penalty, while the upper bound retains only the Kr penalty.
For part (i), taking logarithms in (6.9) and dividing by n2 gives
sq−n2Cq≤Fnmc≤Fn,r(wr).
The conclusion follows from Theorem 2.7(i).
For parts (ii) and (iii), set
Rn:=ZnmcZn,r.
By (6.8), every event A⊆Gn satisfies
(6.10)
Pnmc(A)≤RnPn,r(A).
Moreover, (6.9) implies
0≤n21lnRn≤Fn,r(wr)−sq+n2Cq,
and hence, by Theorem 2.7(i),
(6.11)
n→∞limn21lnRn=0.
The upper bound depends only on n, r, and wr, and it tends to 0. Since the same bound holds simultaneously for every ℓ≥r and every choice of wr+1,…,wℓ≥0, the convergence is uniform in those parameters.
Consequently, suppose that a sequence of events (An) satisfies
Pn,r(An)≤e−an2
for some a>0 and all sufficiently large n. After increasing the threshold if necessary, (6.11) gives Rn≤ean2/2, and (6.10) gives
Pnmc(An)≤e−an2/2.
For part (ii), apply this observation to
An={G∈Gn:δ□(WG,Bq⋆)≥ε}
and use Theorem 2.7(ii).
For part (iii), let Bn,ε be the set of graphs that admit no partition satisfying the five properties stated there. Theorem 2.7(iii) gives an exponential bound for Pn,r(Bn,ε), so the same observation gives the required bound under Pnmc. The edit-distance conclusion follows from any partition satisfying those five properties, exactly as in Theorem 2.7(iii).
For each of parts (ii) and (iii), one may choose c=c(ε,r)>0 and N=N(ε,r,wr). Neither choice depends on ℓ or on the higher weights wr+1,…,wℓ.
REFERENCES
[1] Juan Alvarado, Yuyi Wang, Jan Ramon, Limits of multi-relational graphs, Machine Learning, Vol. 112 (2023) 177–216.
[2] Balogh, J., Bollobás, B., and Simonovits, M., The typical structure of graphs without given excluded subgraphs, Random Structures and Algorithms, Vol. 34 (2009) 305–318.
[3] Balogh, J., Bollobás, B., and Simonovits, M., The fine structure of octahedron-free graphs, Journal of Combinatorial Theory, Series B, Vol. 101 (2011) 67–84.
[4] J. Balogh and J. Butterfield, Excluding induced subgraphs: Critical graphs, Random Structures and Algorithms, Vol. 38 (2011) 100–120.
[5] József Balogh, Robert Morris, Wojciech Samotij and Lutz Warnke, The typical structure of sparse Kr+1-free graphs, Transactions of the American Mathematical Society, Vol. 368 (2016), 6439–6485.
[6] József Balogh, Neal Bushaw, Maurício Collares, Hong Liu, Robert Morris, and Maryam Sharifzadeh, The typical structure of graphs with no large cliques, Combinatorica, Vol. 37 (2017) 617–632.
[7] C. Borgs, J. T. Chayes, L. Lovász, V. T. Sós, and K. Vesztergombi, Convergent sequences of dense graphs I: Subgraph frequencies, metric properties and testing, Adv. Math. 219 (2008), no. 6, 1801–1851, DOI: 10.1016/j.aim.2008.07.008.
[8] Guy Van den Broeck, Kristian Kersting, Sriraam Natarajan, David Poole (editors), An Introduction to Lifted Probabilistic Inference, MIT Press (2021).
[9] S. Chatterjee and P. Diaconis, Estimating and understanding exponential random graph models, Ann. Statist. 41 (2013), no. 5, 2428–2461, DOI: 10.1214/13-AOS1155.
[10] S. Chatterjee and S. R. S. Varadhan, The large deviation principle for the Erdős–Rényi random graph, European J. Combin. 32 (2011), no. 7, 1000–1017, DOI: 10.1016/j.ejc.2011.03.014.
[11] Luc De Raedt, Kristian Kersting, Sriraam Natarajan, David Poole, Statistical Relational Artificial Intelligence: Logic, Probability, and Computation, Morgan & Claypool Publishers (2016).
[12] P. Erdős, D. J. Kleitman, and B. L. Rothschild, Asymptotic enumeration of Kn-free graphs, in Colloquio Internazionale sulle Teorie Combinatorie (Rome, 1973), Tomo II, Atti dei Convegni Lincei, no. 17, Accademia Nazionale dei Lincei, Rome, 1976, 19–27.
[13] Lise Getoor, Ben Taskar (editors), Introduction to Statistical Relational Learning, MIT Press (2007).
[14] J. Hladký, P. Hu, and D. Piguet, Tilings in graphons, European J. Combin. 93 (2021), 103284, DOI: 10.1016/j.ejc.2020.103284.
[15] Hundack, C., Prömel, H. J., and Steger, A., Extremal graph problems for graphs with a color-critical vertex, Combinatorics, Probability and Computing, Vol. 2 (1993) 465–477.
[16] S. Janson, Graphons, cut norm and distance, couplings and rearrangements, New York J. Math. Monographs 4 (2013), 1–76.
[17] J. Kim, D. Kühn, D. Osthus, T. Townsend, Forbidding induced even cycles in a graph: typical structure and counting, Journal of Combinatorial Theory, Ser. B, Vol. 131 (2018) 170–219.
[18] D. J. Kleitman, B. L. Rothschild, Asymptotic enumeration of partial orders on a finite set, Transactions of the American Mathematical Society, Vol. 205 (1975) 205–220.
[19] Ph. G. Kolaitis, H. J. Prömel, and B. L. Rothschild, Kℓ+1-free graphs: asymptotic structure and a 0–1 law, Trans. Amer. Math. Soc. 303 (1987), no. 2, 637–671, DOI: 10.1090/S0002-9947-1987-0902790-6.
[20] Koponen, V., Random graphs with bounded maximum degree: asymptotic structure and a logical limit law, Discrete Mathematics and Theoretical Computer Science, Vol. 14 (2012) 229–254.
YASMIN TOUSINEJAD AND VERA KOPONEN
[21] V. Koponen, Domain size asymptotics for Markov logic networks, arXiv:2509.04192v2 [cs.AI], 2026, DOI: 10.48550/arXiv.2509.04192.
[22] L. Lovász, Large Networks and Graph Limits, American Mathematical Society Colloquium Publications, vol. 60, American Mathematical Society, Providence, RI, 2012, DOI: 10.1090/coll/060.
[23] M. Mitzenmacher and E. Upfal, Probability and Computing: Randomization and Probabilistic Techniques in Algorithms and Data Analysis, 2nd ed., Cambridge University Press, Cambridge, 2017, DOI: 10.1017/9781316651124.
[24] Hans Jürgen Prömel, Angelika Steger, Excluding induced subgraphs: quadrilaterals, Random Structures and Algorithms, Vol. 2 (1991) 55–71.
[25] Bruce Reed, The Global Structure of a Typical Graph Without H as an Induced Subgraph when H is a Cycle, https://arxiv.org/abs/2506.03544.
[26] M. Richardson and P. Domingos, Markov logic networks, Machine Learning 62 (2006), no. 1–2, 107–136, DOI: 10.1007/s10994-006-5833-1.
[27] G. Robins, P. Pattison, Y. Kalish, and D. Lusher, An introduction to exponential random graph (p∗) models for social networks, Social Networks 29 (2007), no. 2, 173–191, DOI: 10.1016/j.socnet.2006.08.002.
[28] W. Rudin, Principles of Mathematical Analysis, 3rd ed., International Series in Pure and Applied Mathematics, McGraw-Hill, Inc., New York, 1976.
[29] Caroline Terry, Structure and enumeration theorems for hereditary properties in finite relational languages, Annals of Pure and Applied Logic, Vol. 169 (2018) 413–449.
[30] Y. Tousinejad and V. Koponen, Random coloured digraphs defined by a Markov logic network, arXiv:2606.23715 [math.LO], 2026, DOI: 10.48550/arXiv.2606.23715.
[31] N. C. Wormald, Models of random regular graphs, in J. Lamb and D. Preece (editors), Surveys in Combinatorics, 1999, Vol. 267 of London Mathematical Society Lecture Note Series, 239–298, Cambridge University Press (1999).
DEPARTMENT OF MATHEMATICS, UPPSALA UNIVERSITY, SWEDEN.