speeding up random graph generation (ticket #63)

Hi,

I did what we've been talking about. However, generating undirected graph is still inefficient as I have to recompute the cdf now for each node...

We are only decreasing the n in Bin(n, p), so this should possible to be done faster.