degree distribution implemented.