revise the degree distribution generation