added degree distribution calculation