Approximate degree distribution of Distance-2 graph of an Erdos-renyi Graph.
Erdos renyi graph is a graph with n nodes, and choosing
edges, i.e., choosing every possible edge that can exist in a graph and including it with a probability p.
Thus, every node has an approximate degree of n*p --> (1)
Finding distance-2 graph's degree distribution.
As each node is of degree approximately n*p, (Lets call one such node as D)
Every D's neighbor also has an approximate degree of n*p. (Lets call one such neighbor as as X)
But, X's neighbors can be any of the neighbors of D with a probability p.
So, Neighbors of X who are not neighbors of D are
Equ 2 gives the neighbors of X at a distance 2 from node D.
Now let us consider another neighbor of D (say Y)
Y has an approximate degree of n*p (from Equ 1)
But, Y's neighbors can be neighbors of D and X with a probability p ie.,
So, neighbors of Y which are neighbors of D and X are,
But, total # of neighbors of Y is n*p. thus, neighbors of Y which are not the neighbors of D and X are,
This follows till all n*p neighbors of D are exhausted.
This follows an expression,
which on simplification gives,
This is the approximate degree distribution of Distance-2 of an Erdos-renyi graph of order n with a probability p.
Below is a plot of the same.
