User:Sakmal/sandbox/Graphon



In graph theory and statistics, a graphon (also known as a graph limit) is a symmetric measurable function $$W:[0,1]^2\to[0,1]$$, that is important in the study of dense graphs. Graphons arise both as a natural notion for the limit of a sequences of dense graphs, and as the fundamental defining objects of exchangeable random graph models. Graphons are tied to dense graphs by the following pair of observations: the random graph models defined by graphons give rise to dense graphs almost surely, and, by the regularity lemma, graphons capture the structure of arbitrary large dense graphs.

Graphons are sometimes referred to as “continuous graphs”, but this is bad practice because there are many distinct objects that this label might be applied to. In particular, there are generalizations of graphons to the sparse graph regime that could just as well be called “continuous graphs.”

Analytic Formulation
Any graph on $$n$$ vertices $$\{1, 2, \dots, n\}$$ can be identified with its adjacency matrix $$A_G$$. This matrix corresponds to a stepfunction $$W_G : [0,1]^2 \to [0, 1]$$, defined by partitioning $$[0,1]$$ into intervals $$I_1, I_2, \dots, I_n$$ such that $$I_j$$ has interior

and for each $$(x,y)\in I_i\times I_j$$, setting $$W_G(x,y)$$ equal to the $$(i,j)^{\text{th}}$$ entry of $$A_G$$. This function $$W_G$$ is the associated graphon of the graph $$G$$.

In general, if we have a sequence of graphs $$(G_n)$$ where the number of vertices of $$G_{n}$$ goes to infinity, we can analyze the limiting behavior of the sequence by considering the limiting behavior of the functions $$(W_{G_n})$$. If these graphs converge (according to some suitable definition of convergence), then we expect the limit of these graphs to correspond to the limit of these associated functions.

This motivates the definition of a graphon (short for "graph function") as a symmetric measurable function $$W:[0,1]^{2}\to[0,1]$$ which captures the notion of a limit of a sequence of graphs. It turns out that for sequences of dense graphs, several apparently distinct notions of convergence are equivalent and under all of them the natural limit object is a graphon.

Examples
Example 1: Take a random sequence $$(G_n)$$ Erdős–Rényi graphs $$G_n = G(n,p)$$ with some fixed parameter $$p$$. Intuitively, as $$n$$ tends to infinity, the limit of this sequence of graphs is determined solely by edge density of these graphs.

In the space of graphons, it turns out that such a sequence converges almost surely to the constant $$W(x,y)\equiv p$$, which captures the above intuition.

Example 2: Take the sequence $$(H_n)$$ of half-graphs, defined by taking $$H_n$$ to be the bipartite graph on $$2n$$ vertices $$u_1, u_2, \dots, u_n$$ and $$v_1, v_2, \dots, v_{n}$$ such that $$u_i$$ is adjacent to $$v_j$$ precisely when $$i\le j$$. If the vertices are listed in the presented order, then the adjacency matrix $$A_{H_n}$$ has two corners of "half square" block matrices filled with ones, with the rest of the entries equal to zero. For example, the adjacency matrix of $$H_{3}$$ is given by

As $$n$$ gets large, these corners of ones "smooth" out. Matching this intuition, the sequence $$(H_n)$$ converges to the half-graphon $$W$$ defined by $$W(x,y) = 1$$ when $$|x-y| \ge 1/2$$ and $$W(x,y) = 0$$ otherwise.

Example 3: Take the sequence $$(K_{n,n})$$ of complete bipartite graphs with equal sized parts. If we order the vertices by placing all vertices in one part at the beginning and placing the vertices of the other part at the end, the adjacency matrix of $$(K_{n,n})$$ looks like a block off-diagonal matrix, with two blocks of ones and two blocks of zeros. For example, the adjacency matrix of $$K_{2,2}$$ is given by

As $$n$$ gets larger, this block structure of the adjacency matrix remains constant, so that this sequence of graphs converges to a "complete bipartite" graphon $$W$$ defined by $$W(x,y) = 1$$ whenever $$\min(x,y) \le 1/2$$ and $$\max(x,y) > 1/2$$, and setting $$W(x,y) = 0$$ otherwise.

Example 4: Consider the sequence $$(K_{n,n})$$ from the previous example again. If we instead order vertices by alternating between parts, the adjacency matrix has a chessboard structure of zeros and ones. For example, under this ordering, the adjacency matrix of $$K_{2,2}$$ is given by

As $$n$$ gets larger, the adjacency matrices become a finer and finer chessboard. Despite this behavior, we still want the limit of $$(K_{n,n})$$ to be unique and result in the graphon from example 4. This means when we formally define convergence for a sequence of graphs, the definition of a limit should be agnostic to relabelings of the vertices.

Example 5: Take a random sequence $$(G_n)$$ of $$W$$-random graphs by drawing $$G_n \sim \mathbb{G}(n, W)$$ for some fixed graphon $$W$$. Then just like in the first example from this section, it turns out that $$(G_n)$$ converges to $$W$$ almost surely.

Example 6: Given graph $$G$$ with associated graphon $$W = W_G$$, we can recover graph theoretic properties and parameters of $$G$$ by integrating transformations of $$W$$.

For example, the edge density (i.e. average degree divided by number of vertices) of $$G$$ is given by the integral

This is because $$W$$ is $$\{0,1\}$$-valued, and each edge $$(i, j)$$ in $$G$$ corresponds to a region $$I_i \times I_j$$ of area $$1/n^2$$ where $$W$$ equals $$1$$.

Similar reasoning shows that the number of triangles in $$G$$ is equal to

Notions of Convergence
There are many different ways to measure the distance between two graphs. If we are interested in metrics that "preserve" extremal properties of graphs, then we should restrict our attention to metrics that identify random graphs as similar. For example, if we randomly draw two graphs independently from an Erdős–Rényi model $$G(n,p)$$ for some fixed $$p$$, the distance between these two graphs under a "reasonable" metric should be close to zero with high probability for large $$n$$.

There are two natural metrics that behave well on dense random graphs, in this sense. The first is a sampling metric, which says two graphs are close if their distributions of subgraphs are close. The second is an edge discrepancy metric, which says two graphs are close when their edge densities are close on all their corresponding subsets of vertices.

Miraculously, a sequence of graphs converges when with respect to one distance precisely when it converges with respect to the other. Moreover, the limit objects under both distances turn out to graphons. The equivalence of these two notions of convergence mirrors how various notions of quasirandom graphs are equivalent.

Subgraph Counts
One way to measure the distance between two graphs $$G$$ and $$H$$ is to compare their relative subgraph counts. That is, for each graph $$F$$ we can compare the number of copies of $$F$$ in $$G$$ and $$F$$ in $$H$$. If these numbers are close for every graph $$F$$, then intuitively $$G$$ and $$H$$ are similar looking graphs.

Homomorphism Densities
Rather than dealing directly with subgraphs, it turns out to be easier to work with graph homomorphisms. This is fine when dealing with large, dense graphs, since in this scenario the number of subgraphs and the number of graph homomorphisms from a fixed graph are asymptotically equal.

Given two graphs $$F$$ and $$G$$, the homomorphism density $$t(F, G)$$ of $$F$$ in $$G$$ is defined to be the number of graph homomorphisms from $$F$$ to $$G$$. In other words, $$t(F,G)$$ is the probability a randomly chosen map from the vertices of $$F$$ to $$G$$ sends adjacent vertices in $$F$$ to adjacent vertices in $$G$$.

Graphons offer a simple way to compute homomorphism densities. Indeed, given a graph $$G$$ with associated graphon $$W_G$$ and another $$F$$, we have

where the integral is multidimensional, taken over the unit hypercube $$[0,1]^{V(F)}$$. This follows from the definition of an associated graphon, by considering when the above integrand is equal to $$1$$. We can then extend the definition of homomorphism density to arbitrary graphons $$W$$, by using the same integral and defining

for any graph $$F$$.

Limits in Terms of Homomorphism Density
Given this setup, we say a sequence of graphs $$(G_n)$$ converges if for every fixed graph $$F$$, the sequence of homomorphism densities $$\left(t(F, G_n)\right)$$ converges. Although not evident from the definition alone, if $$(G_n)$$ converges in this sense, then there always exists a graphon $$W$$ such that for every graph $$F$$, we have

simultaneously.

Cut Distance
Take two graphs $$G$$ and $$H$$ on the same vertex set. Because these graphs share the same vertices, one way to measure their distance is to restrict to subsets $$X, Y$$ of the vertex set, and for each such pair subsets compare the number of edges $$e_G(X,Y)$$ from $$X$$ to $$Y$$ in $$G$$ to the number of edges $$e_H(X,Y)$$ between $$X$$ and $$Y$$ in $$H$$. If these numbers are similar for every pair of subsets (relative to the total number of vertices), then that suggests $$G$$ and $$H$$ are similar graphs.

To formalize this, for any symmetric, measurable function $$f : [0,1]^2 \to \mathbb{R}$$, define the cut norm of $$f$$ to be the quantity

taken over all measurable subsets $$S, T$$ of the unit interval. This norm captures our earlier notion of distance, because for two graphs $$G$$ and $$H$$ with same vertex set $$V$$ of size $$|V| = n$$, the cut norm with the associated graphons

lets us compute the maximum discrepancy of the edge densities between $$G$$ and $$H$$. Note that this definition can still be used even when the graphs being compared do not share a vertex set.

This distance measure still has one large limitation: it can assign nonzero distance to two isomorphic graphs. To make sure isomorphic graphs have distance zero, we should compute the minimum cut norm over all possible "relabellings" of the vertices. This motivates the definition of the cut distance between two graphons $$W$$ and $$U$$ to be

where $$W^\varphi(x,y) = W(\varphi(x), \varphi(y))$$ is the composition of $$W$$ with the map $$\varphi$$, and the infimum is taken over all measure-preserving bijections from the unit interval to itself. The cut distance between two graphs is defined to be the cut distance between their associated graphons.

As a Metric Space
To make the cut-distance into a metric, we take the set of all graphons and identify two graphons $$U \sim W$$ whenever $$\delta_\square(U, W) = 0$$. The resulting space of graphons is denoted $$\tilde{\mathcal{W}}_0$$, and together with $$\delta_\square$$ forms a metric space.

This space turns out to be compact. Moreover, it contains the set of all finite graphs as a dense subset. Here, graphs are being identified as $$\{0,1\}$$-valued step functions on the unit square. These observations show that the space of graphons is a completion of the space of graphs with respect to the cut distance.

Regularity Lemma
Using compactness of the space of graphons $$(\tilde{\mathcal{W}}_0, \delta_{\square})$$, one can prove stronger versions of Szemerédi's regularity lemma.

Sidorenko's Conjecture
The analytic nature of graphons allows greater flexibility in attacking inequalities related to homomorphisms.

For example, Sidorenko's conjecture is a major open problem in extremal graph theory, which asserts that for any graph $$G$$ on $$n$$ vertices with average degree $$pn$$ (for some $$p\in [0,1]$$) and bipartite graph $$H$$ on $$v$$ vertices and $$e$$ edges, the number of homomorphisms from $$H$$ to $$G$$ is at least $$p^{e}n^{v}$$. Since this is quantity is the expected number of labeled subgraphs of $$H$$ in a random graph $$G(n,p)$$, the conjecture can be interpreted as the claim that for any bipartite graph $$H$$, the random graph achieves (in expectation) the minimum number of copies of $$H$$ over all graphs with some fixed edge density.

Many approaches to Sidorenko's conjecture formulate the problem as an integral inequality on graphons, which then allows the problem to be attacked using other analytical approaches.

Statistical Formulation
A graphon is a symmetric measurable function $$W:[0,1]^{2}\to[0,1]$$. Usually a graphon is understood as defining an exchangeable random graph model according to the following scheme:


 * 1) Each vertex $$j$$ of the graph is assigned an independent random value $$u_{j}\sim U[0,1]$$
 * 2) Edge $$(i,j)$$ is independently included in the graph with probability $$W(u_{i},u_{j})$$.

A random graph model is an exchangeable random graph model if and only if it can be defined in terms of a (possibly random) graphon in this way. The model based off a fixed graphon $$W$$ is sometimes denoted $$\mathbb{G}(n, W)$$, by analogy with the Erdős–Rényi model of random graphs. A graph generated from a graphon $$W$$ in this way is called a $$W$$-random graph.

It follows from this definition and the law of large numbers that, if $$W\neq0$$, exchangeable random graph models are dense almost surely.

Examples
The simplest example of a graphon is $$W(x,y)\equiv p$$ for some constant $$p\in[0,1]$$. In this case the associated exchangeable random graph model is the Erdős–Rényi model $$G(n,p)$$ that includes each edge independently with probability $$p$$.

If we instead start with a graphon that is piecewise constant by:

the resulting exchangeable random graph model is the $$k$$ community stochastic block model, a generalization of the Erdős–Rényi model. We can interpret this as a random graph model consisting of $$k$$ distinct Erdős–Rényi graphs with parameters $$p_{ll}$$ respectively, with bigraphs between them where each possible edge between blocks $$(l,l)$$ and $$(m,m)$$ is included independently with probability $$p_{lm}$$.
 * 1) dividing the unit square into $$k\times k$$ blocks, and
 * 2) setting $$W$$ equal $$p_{lm}$$ on the $$(l,m)^{\text{th}}$$ block,

Many other popular random graph models can be understood as exchangeable random graph models defined by some graphon, a detailed survey is included in Orbanz and Roy.

Jointly exchangeable adjacency matrices
A random graph of size $$n$$ can be represented as a random $$n\times n$$ adjacency matrix. In order to impose consistency (in the sense of projectivity) between random graphs of different sizes it is natural to study the sequence of adjacency matrices arising as the upper-left $$n\times n$$ sub-matrices of some infinite array of random variables; this allows us to generate $$G_{n}$$ by adding a node to $$G_{n-1}$$ and sampling the edges $$(j,n)$$ for $$j<n$$. With this perspective, random graphs are defined as random infinite symmetric arrays $$(X_{ij})$$.

Following the fundamental importance of exchangeable sequences in classical probability, it is natural to look for an analogous notion in the random graph setting. One such notion is given by jointly exchangeable matrices; i.e. random matrices satisfying


 * $$ (X_{ij}) \ \overset{d}{=} \, (X_{\sigma(i)\sigma(j)})$$

for all permutations $$\sigma$$ of the natural numbers, where $$\overset{d}{=}$$ means equal in distribution. Intuitively, this condition means that the distribution of the random graph is unchanged by a relabeling of its vertices: that is, the labels of the vertices carry no information.

There is a representation theorem for jointly exchangeable random adjacency matrices, analogous to de Finetti’s representation theorem for exchangeable sequences. This is a special case of the Aldous–Hoover theorem for jointly exchangeable arrays and, in this setting, asserts that the random matrix $$(X_{ij})$$ is generated by:


 * 1) Sample $$u_{j}\sim U[0,1]$$ independently
 * 2) $$X_{ij}=X_{ji}=1$$ independently at random with probability $$W(u_i,u_j),$$

where $$W:[0,1]^2\to[0,1]$$ is a (possibly random) graphon. That is, a random graph model has a jointly exchangeable adjacency matrix if and only if it is a jointly exchangeable random graph model defined in terms of some graphon.

Graphon estimation
Due to identifiability issues, it is impossible to estimate either the graphon $$W$$ or the node latent positions $$u_i,$$ and there are two main directions of graphon estimation. One direction aims at estimating $$W$$up to an equivalence class, or estimate the probability matrix induced by $$W$$.

Generalizations
Graphons are naturally associated with dense simple graphs. There are extensions of this model to dense directed weighted graphs, often referred to as decorated graphons. There are also recent extensions to the sparse graph regime, from both the perspective of random graph models and graph limit theory.