minimum number of edges in a simple graph