Why a complete graph has (n(n−1))/2 edges?

miniliv4

miniliv4

Answered question

2022-10-02

Why a complete graph has n ( n 1 ) 2 edges?

Answer & Explanation

falwsay

falwsay

Beginner2022-10-03Added 8 answers

A simpler answer without binomials: A complete graph means that every vertex is connected with every other vertex. If you take one vertex of your graph, you therefore have n 1 outgoing edges from that particular vertex.
Now, you have n vertices in total, so you might be tempted to say that there are n ( n 1 ) edges in total, n 1 for every vertex in your graph. But this method counts every edge twice, because every edge going out from one vertex is an edge going into another vertex. Hence, you have to divide your result by 2. This leaves you with n ( n 1 ) / 2.
pokvarilaap

pokvarilaap

Beginner2022-10-04Added 3 answers

A complete graph has an edge between any two vertices. You can get an edge by picking any two vertices.
So if there are n vertices, there are 𝑛 choose 2 = ( n 2 ) = n ( n 1 ) / 2 edges.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?