Given n nodes, if every node is connected to every other node (except itself) the number of connections will be n*(n-1)/2
How does one prove this ?
This is not a homework question. I have been away from CS text books for long and have forgotten the theory on how to prove this.
And one more solution, combinatorial: The problem is equivalent to the number of possible pairs of nodes in the graph, i.e.: