ArticleslgStudy

science

Complement graph

Complement graph is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Complement graph rather than just read about it. In short: In the mathematical field of graph theory, the complement or inverse of a graph G is a graph H on the same vertices such that two distinct vertices are adjacent (connected) in H if and only if they are not adjacent in G. 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.

Complement graph — main illustration
Complement graph — illustration

Key takeaways

  • Complement graph belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Complement graph to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Complement graph from memory before moving on to harder problems.

Reference excerpt

In the mathematical field of graph theory, the complement or inverse of a graph G is a graph H on the same vertices such that two distinct vertices are adjacent (connected) in H if and only if they are not adjacent in G. 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.

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 𝔸(G) and 𝔸(K) respectively be the adjacency matrices of G and K. Then the adjacency matrix of the complement H of G is: 𝔸(H)=𝔸(K)−𝔸(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.

Applications and examples Several graph-theoretic concepts are related to each other via complementation:

The complement of an edgeless graph is a complete graph, and vice versa. Any induced subgraph of the complement graph of a graph G is the complement of the corresponding induced subgraph in G. An independent set in a graph is a clique in the complement graph, and vice versa. 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. The automorphism group of a graph is the automorphism group of its complement. The complement of every triangle-free graph is a claw-free graph, but the reverse is not true.

Self-complementary graphs and graph classes

A self-complementary graph is a graph that is isomorphic to its own complement. Examples include the four-vertex path graph and five-vertex cycle graph. There is no known characterization of self-complementary graphs. 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.

Perfect graphs are the graphs in which, for every induced subgraph, the chromatic number equals the size of the maximum clique. The fact that the complement of a perfect graph is also perfect is the perfect graph theorem of László Lovász. Cographs are defined as the graphs that can be built up from single vertices by disjoint union and complementation operations. They form a self-complementary family of graphs: the complement of any cograph is another, different, cograph. For cographs of more than one vertex, exactly one graph in each complementary pair is connected, and one equivalent definition of cographs is that each of their connected induced subgraphs has a disconnected complement. Another, self-complementary, definition is that cographs are the graphs with no four-vertex path as an induced subgraph. Another self-complementary class of graphs is the class of split graphs, the graphs in which the vertices can be partitioned into a clique and an independent set. The same partition gives an independent set and a clique in the complement graph. 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). These two operations are complementary and they generate a self-complementary class of graphs.

Algorithmic aspects In the analysis of algorithms on graphs, the distinction between a graph and its complement is an important one, because a sparse graph (one with a small number of edges compared to the number of pairs of vertices) will in general not have a sparse complement, and so an algorithm that takes time proportional to the number of edges on a given graph may take a much larger amount of time if the same algorithm is run on an explicit representation of the complement graph. 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. In particular, it is possible to simulate either depth-first search or breadth-first search on the complement graph, in an amount of time that is linear in the size of the given graph, even when the complement graph may have a much larger size. It is also possible to use these simulations to compute other properties concerning the connectivity of the complement graph.

References

Illustrations

Complement graph: The Petersen graph (on the left) and its complement graph (on the right)
The Petersen graph (on the left) and its complement graph (on the right)
Complement graph: The four-vertex path is self-complementary.
The four-vertex path is self-complementary.

Worked examples

Example 1 — a first encounter with Complement graph

Start with the simplest possible case. Write down what Complement graph claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Complement graph before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Complement graph ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Complement graph

In research
Complement graph appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Complement graph in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Complement graph is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph operations, so understanding it makes those chapters shorter.
In everyday life
Look for Complement graph outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Complement graph” →

How to study Complement graph in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Complement graph means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Complement graph out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Complement graph in simple terms?

In the mathematical field of graph theory, the complement or inverse of a graph G is a graph H on the same vertices such that two distinct vertices are adjacent (connected) in H if and only if they are not adjacent in G. That is, to generate the complement of a graph, one fills in all the missing e…

Why does Complement graph matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Complement graph?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Complement graph.

Tags

  • Graph operations

Keep exploring