Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

On my book it says that the maximum number of edges E, in a simply connected undirected unweighted graph $G(V,E)$ is $\dfrac{|V|(|V|-1)}{2}$.

How can I show that it is true? Thanks!

share|cite|improve this question
It seems there are some unfortunate typos in the question. (1.) The answer should be $\frac{1}{2}|V|(|V|-1)$ and not what you quote. (2.) I haven't heard of the term "simply connected" in the context of a graph, at least not at such an elementary level. It should just be "simple" (or, "simple, connected" but the answer doesn't change). Which book are you following? Are you sure you didn't make any mistakes in writing the question? – Srivatsan Sep 3 '11 at 13:34
Related(?):…. – Srivatsan Sep 3 '11 at 13:35
This question answered in the link below:… – Herman Jaramillo Sep 24 at 20:46

3 Answers 3

up vote 9 down vote accepted

I will assume for a moment that you meant $\dfrac{|V|(|V| - 1)}{2}$, as it is hard to describe the number of edges by using the number of edges. And this arises naturally, as this is the number of pairs from $|V|$ vertices, i.e. this is ${|V| \choose 2}$. If we had any more, than the graph would not be simple.

Alternatively, you might now know about complete graphs, which have the maximal number of edges for a set of vertices. They have exactly this number of edges. Having any more would force it to be nonsimple, again.

share|cite|improve this answer
Perhaps it is just me, but the word pairing sounds like a matching to me. Won't "pair" suffice? – Srivatsan Sep 3 '11 at 13:28
@Srivatsan I could believe that. ;p – mixedmath Sep 3 '11 at 13:32

Another way to view this problem is to use the ``Handshaking Lemma''. Viewing the vertices as people and the edges as handshakes, we could ask how many handshakes are possible among $n$ people if every pair of people shakes hands exactly once. Every person can shake hands with the other $n-1$ people in the room. There are not, however, $n(n-1)$ handshakes, since we are counting every handshake exactly twice in this way (this counts Alice shaking Bob's hand as a different handshake than Bob shaking Alice's hand). Thus, $\frac{1}{2}n(n-1)$ gives us the correct count.

share|cite|improve this answer

Perhaps you could use induction. Every new vertex you add must have enough edges added to connect to each of the other vertices. It would be assumed each of the others are already connected.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.