Random Infinite Graphs

A deep dive into universality of infinite random graphs.
Author

Mark Girard

Published

January 3, 2023

I picked up a book at a used book store recently: Probabilistic Methods in Combinitorics (1974) by Paul Erdős and Joel Spencer. Always a sucker for neat-looking old math books, I picked it up and browse through it ocassionally.

As with most of Erdős’ writing, I found the statements and proofs in the book rather obtuse. To help me understand some of the contents, I wanted to write some blog posts as I read through it.

The first topic I wanted to look at was a simple one: random infinite graphs. Here, Spencer and Erdős consider randomly generated graphs whose sets of vertices are the natural numbers. Something interesting happens with the graphs generated this way. Namely, they are almost always the same! Up to isomorphism, at least.

Background

Recall that a graph G is an ordered pair (V,E) consisting of a set V of vertices and a set of edges

E(V2)

(where we recall that given a set S and an integer k, the notation (Sk) is used to denote the collection of all subsets of S containing exactly k elements). We may write Vertices(G)=V and Edges(G)=E. Two distinct vertices a,bVertices(G) are said to be adjacent in G if it holds that

{a,b}Edges(G)

and not adjacent otherwise.

Two graphs G and H are said to be isomorphic if there exists a bijection

f:Vertices(G)Vertices(H)

with the property that, for every choice of distinct pairs of vertices a,bVertices(G), we have the equivalence

{a,b}Edges(G){f(a),f(b)}Edges(H).

Graph isomorphism defines an equivalence relation on a collection of graphs.

Infinite graphs and universality

The set of vertices in a graph is usually taken to be finite, but there is no reason we can’t consider graphs to have infinite sets of vertices. In this note in particular, we will consider graphs whose sets of vertices are the natural numbers N.

Definition. A graph G with Vertices(G)=N is said to be universal if, for every pair of finite disjoint subsets S,TN there exists a choice of vertex aN(ST) that is adjacent to every vertex in S and not adjacent to every vertex in T.

Symbolically, a graph G is universal if the following statement holds:

n,kN,S(Nn),T(NSk),aN(ST),sST,(sS{a,s}Edges(G))

Fascinatingly, it turns out that all universal graphs are isomorphic!

Proposition. All universal graphs on N are isomorphic.

Proof. Suppose G and H are universal graphs on the natural numbers. Define a sequence of finite subsets A1,A2, of N and functions f1,f2,, where

fn:AnN

for each nN recursively as follows.

Define A1={1} and f1(1)=1. Note that f1 is injective and trivially satisfies the relations {1}A1 and {1}f1(A1).

Given a number nN, suppose we have defined An and fn such that fn is injective and satisfies the properties that

{1,2,n}Anand{1,2,n}fn(An).

Consider two cases concerning whether n+1fn(An). - Suppose that n+1fn(An). In this case, let aAn such that fn(a)=n+1. - Conversely, if n+1fn(An), by universality of G, there exists a choice of vertex aNAn such that, for all sAn, the equivalence

{a,s}Edges(G){n+1,fn(s)}Edges(H)

holds.

Similarly, consider the following cases: - If n+1An, let b=fn(n+1). - If a=n+1, where a is the number chosen above, also let b=n+1. - Otherwise, analogous to the step above, by universality of H there exists a choice of vertex bNfn(An) such that, for all sAn, the equivalence

{n+1,s}Edges(G){b,fn(s)}Edges(H)

holds.

Regardless of which of the cases above were used, define

An+1=An{n+1,a}

and fn+1:An+1N as fn+1(s)=fn(s) for every $sA_nn+1,a$, and

fn+1(n+1)=bandfn+1(a)=n+1.

It is evident that fn+1 is injective, and that {1,,n+1}An+1fn+1(An+1).

With the subsets A1,A2, and functions f1,f2, defined this way, note that we have the chain of inclusions

A1A2.

Moreover, for every nN, it holds that fn+1An=fn and for pair of distinct numbers a,bAn we have the equivalence

{a,b}Edges(G){fn(a),fn(b)}Edges(H).

We may now define the desired graph isomorphism f:NN as

f(n)=fn(n)

for every nN.

Random infinite graphs are almost always the same

We now get to the main point of this post: random infinite graphs.

We can randomly construct a graph on a set of vertices as follows. Given a set of vertices V, for each pair of distinct vertices in V, a biased coin is flipped with a probability of p of landing on heads. If the coin lands on heads, an edge is created between those two vertices. This process is repeated for all pairs of distinct vertices in V, and the events of whether an edge is created between two vertices are independent of one another. Essentially, the graph is constructed by randomly deciding, with a certain probability, whether or not to add an edge between each pair of distinct vertices.

This process induces a probability measure on the set Graph(V) of all graphs having vertex set V, which is

Graph(V)=P((V2)),

where P(S) denotes the power set of a set S. For each pair of distinct elements a,bV, define

A{a,b}={GGraph(V):{a,b}Edges(G)}

to be the event that the randomly generated graph contains the edge connecting a and b such that

Pr({a,b}Edges(G))=Pr(A{a,b})=p,

and these events are all independent of each other.

We now turn our attention to infinite graphs. It turns out that random graphs constructed this way are almost always all isomorphic to each other. This is because a graph constructed this way is almost always universal!

Theorem. Let G be a random graph with Vertices(G)=N constructed as above. The ranom graph G is universal with probability 1.

Proof. We prove that the set of graphs that are not universal is a set of measure zero. Given disjoint finite sets S,TN and a number aN(ST), let A(S,T,a) denote the event that in the graph G, the vertex a is adjacent to every vertex in S and not adjacent to every vertex in T. That is,

A(S,T,a)=(sSA{a,t})(tT(A{a,t})c).

Note that the probability of this event is given by

Pr(A(S,T,a))=p|S|(1p)|T|.

Given finite disjoint subsets S,TN that are not both nonempty, note that the events A(S,T,a) and A(S,T,b) are independent from one another for each choice of a,bN(ST) and thus

Pr(aN(ST)A(S,T,a)c)=aN(ST)(1p|S|(1p)|T|)=limk(1p|S|(1p)|T|)k=0,

as $0 p{S}(1-p){T} $. Now, the event that the random graph is not universal is

nNS(Nk)nNT(NSk)(aN(ST)A(S,T,a)c),

which is a countable union of a measure-zero sets, and thus also has zero measure.

We conclude that there is a graph H on N such that a randomly generated graph G is almost always isomorphic to H.

Corollary. With probability one, random graphs on N are all isomorphic to one another.