Maths WorkshopMaths problems with full solutions
Exercise 469Combinatorics › Graph theoryHigh schoolAdded 3 Nov 2026

The complement of a graph

#complement#graph#edges

Statement

Let GG have nn vertices and mm edges. Describe the complement G‾\overline{G} and compute its number of edges.

Hint

Two vertices are adjacent in G‾\overline{G} iff they are not adjacent in GG.

Show solutionHide solution

Solution

Definition. V(G‾)=V(G)V(\overline{G})=V(G); edges of G‾\overline{G} = non-edges of GG.

Edge count. Total possible edges: (n2)\binom{n}{2}. Non-edges of GG: (n2)−m\binom{n}{2}-m.

Degree. deg⁡G‾(v)=n−1−deg⁡G(v)\deg_{\overline{G}}(v)=n-1-\deg_G(v).

Conclusion. ∣E(G‾)∣=(n2)−m|E(\overline{G})|=\binom{n}{2}-m.