Added utility function to get edge count in a complete graph.