Random graphs, revisited
Recall the Erdös-Rényi model of random graphs where we define the uniform probability space .
In Exercise 89, we defined the events . Prove that all these events are independent.
Consider the sample space . What is the probability that vertices and 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 , the diameter of is defined as the maximum, over all pairs of vertices of the distance . When the diameter is small, we know that there is a short path that connects every pair of vertices.
Verify the following statements:
- Complete graph has diameter one.
- Path has diameter which is the distance between the two ends of the path.
- Cycle has diameter for even and for odd .
Almost all graphs have diameter two.
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 . Denote this event (that the graph has diameter one) by . Next, what is the probability that the graph has diameter greater than two? Denote such event by . We know that . Since , we only need to show that .
We rephrase the English statement of :
There exists such that, is not an edge and for all , is not a common neighbor of and .
Do you see why is equivalent to the above description? Now, let be the event that is not a common neighbor of and . We can write as
Now, the probability . Moreover, for fixed , the events and are independent, so we have that . Finally, by the union bound over all choices of , we have that
This term goes to zero with increasing .
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.