Show that random graphs typically have diameter 2. That is, the probability that $G_p$, the graph with p vertices, has diameter 2 converges to 1 as $p \rightarrow \infty$.
Hint: Find the probability that two given vertices have minimal distance > 2 in $G_p$; find the average number of such pairs in $G_p$; make a conclusion.
I could solve this problem if I knew the probability that 2 vertices have distance > 2 in $G_p$, but I don't see how to compute this. Could someone provide me with a nudge in the right direction to finding this probability, so that I can complete the proof?
"Distance between $w$ and $v$ is $>2$" can be rewritten as "$v$ and $w$ are not neighbors, and they also share no neighbors." Can you further write this event in terms of edges and compute the probability?
Then,