Skip to content

Complement graph

In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices are adjacent (connected) in if and only if they are not adjacent in .

Version
v1 · 2026-09-28 · History
Domain-specific #
8593
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Graph Theory → Mathematics

Core Idea

Complement graph is treated here as the recurring mathematicslogicstatistics identity summarized by this source-grounded definition: In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices are adjacent (connected) in if and only if they are not adjacent in . In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices are adjacent (connected) in if and only if they are not adjacent in .

How would you explain it like I'm…

The Flip-the-Lines Picture

Draw some dots and connect some pairs with lines. Now make a new picture with the same dots: connect every pair that was NOT connected before, and erase every line that was there. That flipped picture is the complement graph.

Opposite Connections Graph

In math, a graph is a set of dots (called vertices) with lines (called edges) joining some pairs of them. The complement graph uses exactly the same dots. Two dots are joined in the complement exactly when they were not joined in the original. So you draw in every missing line and erase every line that was there. The dots stay the same — only the lines get flipped.

Graph Complement (Edges Flipped)

A graph is a set of vertices with edges connecting some pairs. The complement of a graph G is a new graph on the same vertices in which two distinct vertices are adjacent if and only if they are not adjacent in G. Equivalently, you start from the complete graph — where every pair is connected — and remove the edges G already had. Note that this is not the 'set complement' of the graph as a whole: the vertices are kept, and only the edges are complemented. Some families of graphs are closed under this operation, meaning the complement of a member is also a member; cographs are an example — graphs buildable from single vertices using disjoint union and complementation.

 

The complement of a graph G is the graph on the same vertex set in which two distinct vertices are adjacent exactly when they are not adjacent in G. Equivalently, its edge set is the edge set of the complete graph on those vertices minus the edges of G. It is not a set complement of G as a whole: the vertex set is kept, and only the edge relation among distinct vertices is negated. Several classes of graphs are self-complementary as classes, meaning the complement of any member is again a member. Cographs are a notable example: they are the graphs built from single vertices using disjoint union and complementation, and equivalently the graphs with no induced four-vertex path, a definition that is itself preserved under complementation.

Scope of Application

  • Definitions. Let be a simple undirected graph and let consist of all pairs of distinct vertices in .

  • Definitions. Then the simple undirected graph is the complement of , where is the relative complement of in .

  • Definitions. Let be a simple directed graph and let consist of all ordered pairs of distinct vertices in .

  • Definitions. Then the adjacency matrix of the complement of is: \mathbb{A}(H) = \mathbb{A}(K) - \mathbb{A}(G) .

  • Definitions. 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.

Clarity

A clear use of Complement graph names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices are adjacent (connected) in if and only if they are not adjacent in .

Manages Complexity

Complement graph compresses multiple mathematicslogicstatistics details into a stable diagnostic relation. The source shows both the central mechanism—cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations.—and the practical consequence—let be a simple directed graph and let consist of all ordered pairs of distinct vertices in .

Abstract Reasoning

  1. Type the carrier. Identify the mathematicslogicstatistics entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices are adjacent (connected) in if and only if they are not adjacent in .
  3. Check operation and conditions.

Knowledge Transfer

Within the home domain. Knowledge about Complement graph transfers literally when a new case preserves the same carrier type, relation, and recognition test. Let be a simple undirected graph and let consist of all pairs of distinct vertices in . Then the simple undirected graph is the complement of , where is the relative complement of in . Beyond the home domain. No canonical parent is asserted for Complement graph. An outside case receives the specialist name only when the same typed roles and rejection conditions can be filled literally; otherwise the comparison remains an analogy pending later graph densification.

Relationships to Other Abstractions

Local relationship map for Complement graphParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Complement graphDOMAINPrime abstraction: Network — is a kind ofNetworkPRIME

Current abstraction Complement graph Domain-specific

Parents (1) — more general patterns this builds on

  • Complement graph is a kind of Network Prime

    Complement graph is a domain-specific kind of graph under its frozen identity and differentia. Complete-catalog comparison found the corresponding live broader identity.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Complement graph sits in a moderately populated region (46th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Data Structures & Graph Variants (17 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-10-08