Fixes the average edge per node in Barabási–Albert network.

If we are looking for d_avg as the average edge per node in the
network, the number of edges created for each new node should be
d_avg/2.