log degree of every node in graph