Graph complement
The complement of a graph is a new graph that contains all the vertices of the original graph, but only the edges that are not present in the original graph.
Finding the complement
Section titled “Finding the complement”To find the complement of a graph:
- Add all the edges that are missing between pairs of vertices, in order to make every possible connection (a complete graph).
- Remove all the edges that were in the original graph (so you are left with only the edges you added in step 1).
- This is the complement graph.
Example
Section titled “Example”Find the complement of this graph:
A B| \| \C DThe complete graph would be:
A --- B| \ / || / \ |C --- DNow, remove the edges that were in the original graph (A-B and A-C):
A --- B / | / |C --- DThat’s the complement of the original graph!