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 mathematics_logic_statistics 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 . That is, to generate the complement of a graph, one fills in all the missing edges required to form a complete graph, and removes all the edges that were previously there. The complement of the graph is not the set complement of the graph: only the edges are complemented.

Several classes of graphs are self-complementary, in the sense that the complement of any graph in one of these classes is another graph in the same class. Cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations. Another, self-complementary, definition is that cographs are the graphs with no four-vertex path as an induced subgraph.

For Complement graph, the abstraction is narrower than the article's general subject matter: a positive case must preserve 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. Retaining only the name, a familiar example, or a downstream effect is insufficient. The specialist roles and tests remain anchored in mathematics_logic_statistics, which is why this identity is domain-specific rather than prime.

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.

Structural Signature

Sig role-phrases:

  • Defining carrier — The threshold graphs are the graphs formed by repeatedly adding either an independent vertex (one with no neighbors) or a universal vertex (adjacent to all previously added vertices).
  • Constitutive relation — Cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations.
  • Operating condition — For graphs that allow self-loops (but not multiple adjacencies), the complement of a graph may be defined by adding a self-loop to every vertex that does not have one in , removing its self-loop from every vertex that has one in , and otherwise using the same formula as above.
  • Recognition evidence — Let be a simple undirected graph and let consist of all pairs of distinct vertices in .
  • Admissible variation — Then the simple undirected graph is the complement of , where is the relative complement of in .
  • Characteristic consequence — Let be a simple directed graph and let consist of all ordered pairs of distinct vertices in .
  • Failure boundary — Then the adjacency matrix of the complement of is: \mathbb{A}(H) = \mathbb{A}(K) - \mathbb{A}(G) .

What It Is Not

  • Not the whole field of mathematics_logic_statistics. The node requires the specific identity stated by 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 .
  • Not an over-broad reading. 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.
  • Not an over-broad reading. The complement of every triangle-free graph is a claw-free graph, but the reverse is not true.
  • Not an over-broad reading. They form a self-complementary family of graphs: the complement of any cograph is another, different, cograph.
  • Not automatically Join (graph theory). Retrieval proximity does not establish equivalence; the two identities must be compared by carrier, operation, and failure boundary.

Scope of Application

Complement graph applies literally inside mathematics_logic_statistics wherever the source-defined carrier and relation can be established. Its documented habitats include:

  • 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.
  • Applications and examples. The complement of an edgeless graph is a complete graph, and vice versa.

Outside mathematics_logic_statistics, the name should be retained only when these same operational conditions survive; otherwise the comparison belongs to the broader parent Pattern or should be marked as analogy.

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 . The strongest recognition evidence in the frozen account is: Let be a simple undirected graph and let consist of all pairs of distinct vertices in . A report should distinguish that evidence from a proxy, consequence, or common implementation. It should also state the qualification 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. so that a reader can reproduce the classification rather than infer it from topical resemblance.

Manages Complexity

Complement graph compresses multiple mathematics_logic_statistics 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 . This compression makes cases comparable while leaving parameters, conventions, exceptions, and evidential quality explicit. It is lossy by design: local history and implementation details may be omitted only when they do not alter the defining relation.

Abstract Reasoning

  1. Type the carrier. Identify the mathematics_logic_statistics 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. For graphs that allow self-loops (but not multiple adjacencies), the complement of a graph may be defined by adding a self-loop to every vertex that does not have one in , removing its self-loop from every vertex that has one in , and otherwise using the same formula as above.
  4. Demand recognition evidence. Let be a simple undirected graph and let consist of all pairs of distinct vertices in .
  5. Test variation. Change an implementation or setting while preserving then the simple undirected graph is the complement of , where is the relative complement of in .
  6. Run the collapse test. Remove the defining operation; if the label still seems equally apt, only a topic or correlate was retained.
  7. Reduce cautiously. When the specialist conditions cannot be carried, route the residual comparison to Pattern.

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.

Examples

Canonical

This is a special case of the previous two properties, as an independent set is an edgeless induced subgraph and a clique is a complete induced subgraph. This case is canonical because it supplies a concrete carrier and lets the defining relation be checked rather than merely named.

Mapped back: carrier → the entities in the documented case; operation → 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 ; recognition evidence → Let be a simple undirected graph and let consist of all pairs of distinct vertices in

Applied / In Practice

Let be a simple undirected graph and let consist of all pairs of distinct vertices in . The applied case shows how the identity is used under a second setting or qualification while keeping the same operative relation.

Mapped back: changed setting → Definitions; invariant → 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 ; boundary → the case exits the class when 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

Structural Tensions

T1 — Stable identity versus admissible variation. 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. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Which changes preserve the defining relation, and which replace it?

T2 — Recognition versus proxy. The complement of every triangle-free graph is a claw-free graph, but the reverse is not true. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the cited evidence establish the identity or only a correlated sign?

T3 — Definition versus implementation. They form a self-complementary family of graphs: the complement of any cograph is another, different, cograph. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Is the observed implementation constitutive, optional, or merely common?

T4 — Scope versus overextension. Therefore, researchers have studied algorithms that perform standard graph computations on the complement of an input graph, using an implicit graph representation that does not require the explicit construction of the complement graph. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Can every claimed application fill the same typed roles without metaphor?

T5 — Transfer versus domain accent. The threshold graphs are the graphs formed by repeatedly adding either an independent vertex (one with no neighbors) or a universal vertex (adjacent to all previously added vertices). The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the receiving case instantiate Complement graph literally, co-instantiate Pattern, or only resemble it?

T6 — Autonomy versus reduction. Cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: What does Complement graph distinguish that the broader parent Pattern leaves together?

Structural–Framed Character

Complement graph is structural-leaning. Its structural side is the repeatable organization summarized by 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 . Its framed side is the mathematics_logic_statistics vocabulary that fixes the carrier, evidence, exceptions, and admissible transformations.

Evaluative weight: the identity can be stated descriptively even when applications carry practical stakes. Human-practice dependence: the source-grounded carrier determines whether the relation exists independently or is constituted by a practice. Institutional origin: disciplinary conventions stabilize the name and test. Vocabulary portability: For graphs that allow self-loops (but not multiple adjacencies), the complement of a graph may be defined by adding a self-loop to every vertex that does not have one in , removing its self-loop from every vertex that has one in , and otherwise using the same formula as above. Import versus recognition: literal transfer requires the same mechanism; shape alone is analogy.

Its portable skeleton is Pattern. Its character: a recurring specialist identity whose thin organization can be abstracted, while its operational meaning remains domain-bound.

Structural Core vs. Domain Accent

What is skeletal. 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 . The stable skeleton is the typed relation expressed in that definition and the entry's recognition and collapse tests. The source identifies these operative conditions: The threshold graphs are the graphs formed by repeatedly adding either an independent vertex (one with no neighbors) or a universal vertex (adjacent to all previously added vertices). Cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations. It further constrains recognition and variation through: For graphs that allow self-loops (but not multiple adjacencies), the complement of a graph may be defined by adding a self-loop to every vertex that does not have one in , removing its self-loop from every vertex that has one in , and otherwise using the same formula as above. Let be a simple undirected graph and let consist of all pairs of distinct vertices in .

What is domain-bound. mathematics logic statistics supplies the operative entities, technical vocabulary, warrants, and exceptions that make Complement graph literal. Its documented scope includes the condition that Let be a simple undirected graph and let consist of all pairs of distinct vertices in . Another bounded application condition is that Then the simple undirected graph is the complement of , where is the relative complement of in . These are not decorative examples; they determine which carrier and evidence can fill the abstraction's roles.

Why no parent is asserted. Removing those specialist details does not currently yield one live catalog node that is a necessary genus for every instance. The entry is therefore approved as unparented rather than attached by topical resemblance. Its collapse evidence remains specific—Then the simple undirected graph is the complement of , where is the relative complement of in .—and future graph densification may discover a defensible relation only if it preserves that boundary.

This entry is a kind of Network.

  • Approved unparented node. No current live node supplies a defensible necessary genus or structural prerequisite for Complement graph. The reviewed identity 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. The accelerated suggestion was declined because topical or lexical similarity does not establish hierarchy; the node is admitted without a parent pending later graph densification.
  • Related reasoning operations. Evidence, representation, comparison, classification, transformation, or evaluation may participate in particular cases, but participation does not make any one of them a necessary parent of every instance.

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

Not to Be Confused With

  • Pattern. The parent omits the specialist differentia. Tell: Can the case establish 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 ?
  • Join (graph theory). A graph operation that takes two disjoint graphs and adds every possible edge between their vertex sets while retaining their internal edges. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Self-complementary graph. A graph isomorphic to its complement, so some vertex relabeling exchanges edges with nonedges while preserving graph structure. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Split graph. A graph whose vertices can be partitioned into one clique and one independent set. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • A measurement, proxy, or consequence. Those may provide evidence without being the identity. Tell: Would Complement graph remain present if the detector or downstream effect changed?
  • A metaphorical analogue. A similar shape outside mathematics_logic_statistics lacks the specialist mechanism. Tell: Do the native roles transfer literally, or only the parent Pattern?

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Complement_graph (revision 1351734196).
  • Preserved source candidate: https://archive.org/details/graphtheorywitha0000bond/page/6
  • Preserved source candidate: http://diestel-graph-theory.com/index.html
  • Preserved source candidate: http://www.math.princeton.edu/~mchudnov/claws_survey.pdf

The frozen Wikipedia revision is discovery provenance. The retained source set was reviewed for identity, formal or operational relation, and scope. The encyclopedia's structural synthesis is bounded to those claims; a thin authority surface is recorded as a nonblocking source-strengthening repair rather than concealed.