get min, max and avg degree of the graph.