Lably
Skip to content

Complement graph

Graph with same nodes as but complementary connections to another

  • 4 min read
  • 4 chapters

Related on Lably

Through Mathematics, Graph (discrete mathematics) and If and only if

The complement of the graph is not the set complement of the graph: only the edges are complemented.

Definitions

Let G = (V, E) be a simple undirected graph and let P consist of all pairs of distinct vertices in V. Then the simple undirected graph H = (V, P \ E) is the complement of G, where P \ E is the relative complement of E in P.

Let G = (V, A) be a simple directed graph and let O consist of all ordered pairs of distinct vertices in V. Then the simple directed graph H = (V, O \ A) is the complement of G.

Let G be a simple undirected / directed graph, let K be the complete simple undirected / directed graph on the same number of vertices (i.e., all entries are unity except the diagonal entries which are zero), let A(G) and A(K) respectively be the adjacency matrices of G and K. Then the adjacency matrix of the complement H of G is: A(H)=A(K)−A(G).

The complement is not defined for multigraphs.

For graphs that allow self-loops (but not multiple adjacencies), the complement of a graph G may be defined by adding a self-loop to every vertex that does not have one in G, removing its self-loop from every vertex that has one in G, and otherwise using the same formula as above. However, this operation is different from the one for simple graphs, since applying it to a graph with no self-loop results in a graph with self-loops on all vertices.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Topics in mathematics