Skip to main content

Random graphs, revisited

Recall the Erdös-Rényi model of random graphs where we define the uniform probability space (Γn,P)(\Gamma_n, {\mathbb P}).

Exercise 103

In Exercise 89, we defined the events A(i,j)A(i,j). Prove that all these events are independent.

Exercise 104

Consider the sample space (Γn,P)(\Gamma_n, {\mathbb P}). What is the probability that vertices 11 and 22 have the same degree? Present your answer in closed form (no sums and no dots-dots-dots). Hint: Vandermonde's identity (Example 26) might be useful for your calculations.

Given undirected graph GG, the diameter of GG is defined as the maximum, over all pairs of vertices s,ts,t of the distance dG(s,t)d_G(s,t). When the diameter is small, we know that there is a short path that connects every pair of vertices.

Exercise 105

Verify the following statements:

  • Complete graph KnK_n has diameter one.
  • Path PnP_n has diameter n1n-1 which is the distance between the two ends of the path.
  • Cycle CnC_n has diameter n/2n/2 for even nn and (n1)/2(n-1)/2 for odd nn.
Theorem 40

Almost all graphs have diameter two.

Proof:

What is the probability that the graph has diameter one? This only happens when the graph is a complete graph (do you see why?), so this probability is 2(n2)2^{-{n \choose 2}}. Denote this event (that the graph has diameter one) by E1E_1. Next, what is the probability that the graph has diameter greater than two? Denote such event by E>2E_{>2}. We know that P[G has diamter two]=1P[E1]P[E>2]{\mathbb P}[G \text{ has diamter two}] = 1-{\mathbb P}[E_1] - {\mathbb P}[E_{>2}]. Since P[E1]0{\mathbb P}[E_1] \rightarrow 0, we only need to show that P[E>2]0{\mathbb P}[E_{>2}] \rightarrow 0.

We rephrase the English statement of E>2E_{>2}:

E>2:E_{>2}: There exists u,v[n],uvu,v \in [n], u\neq v such that, {u,v}\{u,v\} is not an edge and for all w∉{u,v}w \not\in \{u,v\}, ww is not a common neighbor of uu and vv.

Do you see why E>2E_{>2} is equivalent to the above description? Now, let F(u,v,w)F(u,v,w) be the event that ww is not a common neighbor of uu and vv. We can write E>2E_{>2} as

E>2=uv(A(u,v)wF(u,v,w))E_{>2} = \bigcup_{u\neq v} \left( \overline{A(u,v)} \cap \bigcap_{w} F(u,v,w) \right)

Now, the probability P[F(u,v,w)]=1P[w is common neighbor]=1(1/2)(1/2)=3/4{\mathbb P}[F(u,v,w)] = 1- {\mathbb P}[w \text{ is common neighbor}] = 1- (1/2)(1/2)= 3/4. Moreover, for fixed u,vu,v, the events {F(u,v,w)}w\{F(u,v,w)\}_{w} and A(u,v)\overline{A(u,v)} are independent, so we have that P[A(u,v)wF(u,v,w)]=1/2(3/4)n2(3/4)n1{\mathbb P}[\overline{A(u,v)} \cap \bigcap_{w} F(u,v,w) ] = 1/2\cdot(3/4)^{n-2} \le (3/4)^{n-1}. Finally, by the union bound over all choices of u,vu,v, we have that

P[E>2](n2)(3/4)n1{\mathbb P}[E_{>2}] \leq {n \choose 2} \cdot (3/4)^{n-1}

This term goes to zero with increasing nn.

Exercise 106

Prove that almost all graphs contain a triangle. Hint: One might consider an event whose probability is simple to compute, which contains the event of not containing a triangle.