Complement

2 min read Last updated Tue May 26 2026 18:26:32 GMT+0000 (Coordinated Universal Time)

Aka. inverse. For a simple graph G=(V,E)G=(V,E), its complement is Gc(V,Ec)G^c(V,E^c) where Ec={{u,v};u,vVuv{u,v}∉E}E^c = \set{ \set{u,v}; \forall u,v \in V \land u \neq v \land \set{u,v} \not\in E } . An edge between two vertices iff they are not adjacent in GG.

Undefined for multigraphs.

(Gc)c=G(G^c)^c = G.

For any graph GG with nn vertices, when merged (unioned) with its complement graph GcG^c, it produces KnK_n.

Self-Complementary Graph

A graph satisfying G=GcG = G^c.

Has n(n1)4\frac{n(n-1)}{4} edges.

Was this helpful?