In graph theory the complement or inverse of a graph is a graph on the same vertices such that two vertices of are adjacent if and only if they are not adjacent in . That is, to find the complement of a graph, you fill in all the missing edges, and remove all the edges that were already there. It is not the set complement of the graph; only the edges are complemented.
Formal construction
Given graph of vertices and edges , construct its complement graph by:
- and
- for a clique of vertices, .
The complement graph is used in Ramsey theory, and in certain reductions for proofs of NP-Completeness.
File:GraphComplement 701.gif
Original Complement Complete
(Simple version) If you want to get complement of a graph simply redraw the graph without any edges then connect all the points that weren't connected in the original.