Calculates the degree entropy of graph g, i.e. $$Entropy(g) = - \sum_{i=1}^{n} i*\log _2(i)$$
References
Anand, Kartik, and Ginestra Bianconi. "Entropy measures for networks: Toward an information theory of complex topologies." Physical Review E 80, no. 4 (2009): 045102.