Degree distribution from edge list