Subgraphs and Special Graph Families

How much of a large network's structure survives when we zoom in on a small piece of it? This question drives one of the most useful ideas in graph theory: the subgraph. Given a graph modeling a social network, a circuit, or a molecule, we often want to isolate a fragment. This might be a cluster of mutually connected friends, a chain of dependencies, or a closed loop of causes. We then study it as a graph in its own right. Doing this precisely requires a key distinction. We must separate merely taking a piece of the vertex and edge sets (a general subgraph) from taking a piece that remembers every edge among the vertices we keep (an induced subgraph). This distinction matters because many real questions are really questions about induced subgraphs. Does this set of people form a clique of mutual friends? Does this set of tasks contain a hidden dependency cycle? Is this coloring problem secretly about detecting a forbidden pattern? Alongside subgraphs, a small family of named graphs recurs constantly. These serve as the building blocks and test cases of the whole subject: complete graphs KnK_n, paths PnP_n, cycles CnC_n, and the complement operation G‾\overline{G}, which swaps edges and non-edges. These are the "atoms" against which more complicated graphs are measured. They are also the pieces into which such graphs are decomposed. The big picture is that graph theory develops by comparing an unknown graph GG to these reference graphs. Does GG contain KnK_n as a subgraph? Is GG itself a path or cycle? Does G‾\overline{G} have some property GG lacks? Much of the subject's machinery — matchings, colorings, planarity, Ramsey theory — is phrased in exactly this vocabulary. This article builds the formal apparatus. It covers rigorous definitions of subgraph and induced subgraph, the four basic named families, the complement construction, and a foundational theorem relating edge counts of a graph and its complement. The article delivers precise definitions, a fully proved theorem about complement edge-counts, and two worked examples with concrete non-trivial graphs. It also includes a counterexample showing why the induced/non-induced distinction cannot be dropped. Finally, it surveys where these ideas surface in coloring, Ramsey theory, and computer science.

Key takeaways
  • A subgraph of GG keeps a subset of vertices and a subset of the corresponding edges; an induced subgraph keeps all edges between the chosen vertices.
  • KnK_n (complete graph), PnP_n (path), and CnC_n (cycle) are the standard reference families every graph is compared against.
  • The complement G‾\overline{G} has the same vertices as GG but exactly the non-edges of GG as its edges.
  • Edge counts of GG and G‾\overline{G} always sum to (n2)\binom{n}{2}, the edge count of KnK_n — a simple but load-bearing identity.
  • Induced subgraphs are determined entirely by a vertex subset; general subgraphs are not, and this gap is where subtle errors creep in.
  • Key idea: every graph is best understood through the smaller, canonical graphs — KnK_n, PnP_n, CnC_n, G‾\overline{G} — sitting inside or beside it.

Where this lives today

In graph coloring, the chromatic number of GG and the clique number ω(G)\omega(G) (the largest nn with KnK_n as an induced subgraph) are linked by χ(G)≥ω(G)\chi(G) \ge \omega(G), and perfect graphs are exactly those where this bound is tight for every induced subgraph — a definition that could not even be stated without the induced-subgraph concept. This sets up the transition to Graph Coloring and Chromatic Number. In Ramsey theory, the complement operation is the engine of the argument: Ramsey's theorem guarantees that for large enough nn, any red/blue coloring of the edges of KnK_n contains a monochromatic KkK_k, and phrasing "red edges" as GG and "blue edges" as G‾\overline{G} is the standard setup, directly using Edge complementarity. In bipartite structure detection, checking whether a graph contains an odd cycle C2k+1C_{2k+1} as a subgraph is the combinatorial heart of testing bipartiteness, foreshadowing Bipartite Graphs and Characterization. In computer science, induced subgraph isomorphism (deciding whether G[S]≅HG[S] \cong H for some SS) is NP-complete in general and underlies pattern-matching in chemical structure search, social network motif detection, and database query graphs. Paths and cycles as subgraphs are the basic objects tested by depth-first search (for cycle detection) and by shortest-path algorithms (which return induced or non-induced paths depending on the algorithm). In statistics and network science, complements of "similarity graphs" (where edges mean "similar") give "dissimilarity graphs," and clique-finding in one is independent-set-finding in the other, a direct application of the clique/independent-set duality from Example 2. In coding theory and design theory, complete graphs KnK_n model round-robin tournament schedules, and their edge decompositions into paths or cycles (Hamiltonian decomposition of KnK_n) are classical combinatorial design problems.

Ask the tutor: Can you show why every self-complementary graph must have 44 or 4k+14k{+}1 vertices, with a full worked construction for n=5n=5?

DefinitionSubgraphs, induced subgraphs, and the special families

Let G=(V,E)G = (V, E) be a simple graph (no loops, no multiple edges), where EE is a set of unordered pairs of distinct vertices from VV.

Subgraph. A graph H=(V′,E′)H = (V', E') is a subgraph of GG, written H⊆GH \subseteq G, if

V′⊆V,E′⊆E,and every edge in E′ has both endpoints in V′.V' \subseteq V, \qquad E' \subseteq E, \qquad \text{and every edge in } E' \text{ has both endpoints in } V'.

Induced subgraph. For a subset S⊆VS \subseteq V, the subgraph induced by SS, denoted G[S]G[S], is the graph with vertex set SS and edge set

E(G[S])={ {u,v}∈E:u,v∈S }.E(G[S]) = \{\, \{u,v\} \in E : u, v \in S \,\}.

That is, G[S]G[S] contains every edge of GG with both endpoints in SS. A subgraph HH of GG is called induced if H=G[V(H)]H = G[V(H)]; equivalently, HH is induced iff no edge of GG between two vertices of V(H)V(H) is missing from HH.

Spanning subgraph. A subgraph H⊆GH \subseteq G is spanning if V(H)=VV(H) = V.

Complete graph KnK_n. The graph on nn vertices in which every pair of distinct vertices is joined by an edge:

V(Kn)={v1,…,vn},E(Kn)={{vi,vj}:i≠j}.V(K_n) = \{v_1,\dots,v_n\}, \qquad E(K_n) = \{\{v_i,v_j\} : i \ne j\}.

It has (n2)=n(n−1)2\binom{n}{2} = \frac{n(n-1)}{2} edges.

Path PnP_n. The graph on nn vertices v1,…,vnv_1,\dots,v_n with edge set {{vi,vi+1}:1≤i≤n−1}\{\{v_i,v_{i+1}\} : 1 \le i \le n-1\}; it has n−1n-1 edges and exactly two vertices of degree 11 (when n≥2n \ge 2).

Cycle CnC_n (n≥3n \ge 3). The graph on nn vertices v1,…,vnv_1,\dots,v_n with edge set {{vi,vi+1}:1≤i≤n−1}∪{{vn,v1}}\{\{v_i,v_{i+1}\} : 1 \le i \le n-1\} \cup \{\{v_n,v_1\}\}; it has nn edges and every vertex has degree 22.

Complement. The complement of G=(V,E)G = (V,E) is the graph G‾=(V,E‾)\overline{G} = (V, \overline{E}) where

E‾={ {u,v}:u,v∈V, u≠v, {u,v}∉E }.\overline{E} = \{\, \{u,v\} : u,v \in V,\ u \ne v,\ \{u,v\} \notin E \,\}.

So G‾\overline{G} has exactly the pairs of vertices that are not adjacent in GG.

Intuition

Think of GG as a friendship network drawn on a fixed set of people. A subgraph corresponds to choosing some people and some of their real friendships to record — perhaps you only wrote down half the friendships you know about among the people you chose. An induced subgraph is stricter: once you decide which people to include, you must record every friendship that actually exists among them. This is why induced subgraphs are so natural for questions like "is there a clique of size 44 hiding in here?" — a clique is a set of vertices whose induced subgraph is complete, and the answer would be corrupted if we were allowed to selectively drop edges. The complement flips the entire picture: G‾\overline{G} records exactly the non-friendships. A set of vertices that forms a clique in GG becomes an independent set (no edges at all) in G‾\overline{G}, and vice versa. This duality is why the complement operation is indispensable in coloring theory and Ramsey theory: statements about cliques in GG translate directly into statements about independent sets in G‾\overline{G}.

:::svg[GG on 5 vertices, an induced subgraph G[{1,2,3,4}]G[\{1,2,3,4\}], and a non-induced subgraph on the same vertex set] G 1 2 3 4 5 Induced G[{1,2,3,4}] 1 2 3 4 keeps ALL 4 edges among {1,2,3,4} Non-induced sub. on {1,2,3,4} 1 2 3 4 only 2 of the 4 edges kept

TheoremEdge complementarity

Let G=(V,E)G = (V,E) be a simple graph on n=∣V∣n = |V| vertices, and let G‾\overline{G} be its complement. Then

∣E(G)∣+∣E(G‾)∣=(n2).|E(G)| + |E(\overline{G})| = \binom{n}{2}.

Consequently, for every vertex v∈Vv \in V,

deg⁡G(v)+deg⁡G‾(v)=n−1.\deg_G(v) + \deg_{\overline{G}}(v) = n - 1.
Proof

We use direct counting via a partition of the edge set of KnK_n (proof technique: partition/double counting). Fix the vertex set VV with ∣V∣=n|V| = n. Let (V2)\binom{V}{2} denote the set of all unordered pairs of distinct vertices of VV; by definition of KnK_n this set is exactly E(Kn)E(K_n), and

∣(V2)∣=(n2).\left|\binom{V}{2}\right| = \binom{n}{2}.

This is a standard counting fact: choosing an unordered pair of distinct elements from an nn-element set can be done in (n2)\binom{n}{2} ways, since each pair is counted once and there are n(n−1)n(n-1) ordered pairs of distinct elements, each unordered pair corresponding to 22 ordered pairs. By the definition of a simple graph, E(G)⊆(V2)E(G) \subseteq \binom{V}{2}: every edge of GG is some pair of distinct vertices. By the definition of the complement,

E‾=(V2)∖E,\overline{E} = \binom{V}{2} \setminus E,

i.e. E‾\overline{E} consists precisely of the pairs in (V2)\binom{V}{2} that are not in EE. Hence EE and E‾\overline{E} are disjoint, and their union is all of (V2)\binom{V}{2}:

E∪E‾=(V2),E∩E‾=∅.E \cup \overline{E} = \binom{V}{2}, \qquad E \cap \overline{E} = \emptyset.

This is a partition of a finite set into two disjoint pieces, so by the addition principle,

∣E∣+∣E‾∣=∣(V2)∣=(n2).|E| + |\overline{E}| = \left|\binom{V}{2}\right| = \binom{n}{2}.

This proves the first claim. For the second claim, fix v∈Vv \in V. The degree deg⁡G(v)\deg_G(v) counts the number of vertices u≠vu \ne v with {u,v}∈E\{u,v\} \in E, and deg⁡G‾(v)\deg_{\overline{G}}(v) counts the number of u≠vu \ne v with {u,v}∈E‾\{u,v\} \in \overline{E}. Since every pair {u,v}\{u,v\} with u≠vu \ne v lies in exactly one of EE or E‾\overline{E} (shown above), the n−1n-1 vertices u≠vu \ne v split into exactly those adjacent to vv in GG and those adjacent to vv in G‾\overline{G}, with no overlap and no omission. Hence

deg⁡G(v)+deg⁡G‾(v)=n−1,\deg_G(v) + \deg_{\overline{G}}(v) = n - 1,

completing the proof. ■\blacksquare

∎
CorollaryComplement of the complement

For any simple graph GG, G‾‾=G\overline{\overline{G}} = G.

The corollary follows because E‾\overline{E} is defined as (V2)∖E\binom{V}{2}\setminus E, and taking complements twice removes the same set twice: (V2)∖((V2)∖E)=E\binom{V}{2} \setminus (\binom{V}{2}\setminus E) = E, using the set-theoretic identity A∖(A∖B)=BA \setminus (A \setminus B) = B for B⊆AB \subseteq A (here B=E⊆(V2)=AB = E \subseteq \binom{V}{2} = A).

Worked examples

Example 1: Petersen-style asymmetric example on 6 vertices. Let V={1,2,3,4,5,6}V = \{1,2,3,4,5,6\} and let GG have edge set

E={ {1,2},{2,3},{3,4},{4,5},{5,6},{1,6},{1,4} }.E = \{\,\{1,2\}, \{2,3\}, \{3,4\}, \{4,5\}, \{5,6\}, \{1,6\}, \{1,4\}\,\}.

So GG is a 66-cycle 11–22–33–44–55–66–11 with one extra "diagonal" chord {1,4}\{1,4\}, giving ∣E∣=7|E| = 7 edges. Subgraph vs. induced subgraph. Take S={1,2,3,4}S = \{1,2,3,4\}.

  • The induced subgraph G[S]G[S] must contain every edge of GG with both endpoints in SS. Scanning EE: {1,2}⊆S\{1,2\}\subseteq S (yes), {2,3}⊆S\{2,3\}\subseteq S (yes), {3,4}⊆S\{3,4\}\subseteq S (yes), {4,5}\{4,5\} (no, 5∉S5\notin S), {5,6}\{5,6\} (no), {1,6}\{1,6\} (no), {1,4}⊆S\{1,4\}\subseteq S (yes). So
E(G[S])={{1,2},{2,3},{3,4},{1,4}},E(G[S]) = \{\{1,2\},\{2,3\},\{3,4\},\{1,4\}\},

a 44-cycle C4C_4 on {1,2,3,4}\{1,2,3,4\} — four edges.

  • A non-induced subgraph HH on the same vertex set SS could legally omit some of these, e.g. HH with V(H)={1,2,3,4}V(H) = \{1,2,3,4\} and E(H)={{1,2},{3,4}}E(H) = \{\{1,2\},\{3,4\}\} is a valid subgraph (a matching of two disjoint edges) but is not induced, since it drops the edges {2,3}\{2,3\} and {1,4}\{1,4\} that GG actually has among these vertices.

Complement. Since n=6n = 6, (62)=15\binom{6}{2} = 15, and ∣E(G‾)∣=15−7=8|E(\overline{G})| = 15 - 7 = 8, matching Edge complementarity. Concretely, all 1515 pairs are

{1,2},{1,3},{1,4},{1,5},{1,6},{2,3},{2,4},{2,5},{2,6},{3,4},{3,5},{3,6},{4,5},{4,6},{5,6}.\{1,2\},\{1,3\},\{1,4\},\{1,5\},\{1,6\},\{2,3\},\{2,4\},\{2,5\},\{2,6\},\{3,4\},\{3,5\},\{3,6\},\{4,5\},\{4,6\},\{5,6\}.

Removing the 77 edges of EE leaves

E‾={{1,3},{1,5},{2,4},{2,5},{2,6},{3,5},{3,6},{4,6}},\overline{E} = \{\{1,3\},\{1,5\},\{2,4\},\{2,5\},\{2,6\},\{3,5\},\{3,6\},\{4,6\}\},

which indeed has 88 elements. Check the degree identity at vertex 11: deg⁡G(1)=∣{{1,2},{1,6},{1,4}}∣=3\deg_G(1) = |\{\{1,2\},\{1,6\},\{1,4\}\}| = 3, and deg⁡G‾(1)=∣{{1,3},{1,5}}∣=2\deg_{\overline{G}}(1) = |\{\{1,3\},\{1,5\}\}| = 2; sum is 5=n−1=6−15 = n - 1 = 6-1. ✓. Named families inside GG. GG contains P4P_4 as a subgraph (e.g. 22–33–44–55, using existing edges {2,3},{3,4},{4,5}\{2,3\},\{3,4\},\{4,5\}), and contains C4C_4 as an induced subgraph, as computed above (on {1,2,3,4}\{1,2,3,4\}), and contains the full 66-cycle C6C_6 as a spanning subgraph (drop the chord {1,4}\{1,4\}). GG does not contain K4K_4 as a subgraph: a K4K_4 needs 66 edges among 44 vertices, but the maximum number of edges GG has among any 44 vertices is 44 (as seen with S={1,2,3,4}S=\{1,2,3,4\}), since GG has only 77 edges total spread over 66 vertices with maximum degree 33.

Example 2: A graph and its complement, with a clique/independent-set duality. Let V={a,b,c,d,e}V = \{a,b,c,d,e\} and

E={{a,b},{a,c},{a,d},{b,c},{c,e}}.E = \{\{a,b\},\{a,c\},\{a,d\},\{b,c\},\{c,e\}\}.

So ∣E∣=5|E| = 5. Degrees: deg⁡(a)=3\deg(a)=3 (b,c,db,c,d), deg⁡(b)=2\deg(b)=2 (a,ca,c), deg⁡(c)=3\deg(c)=3 (a,b,ea,b,e), deg⁡(d)=1\deg(d)=1 (aa), deg⁡(e)=1\deg(e)=1 (cc). Is {a,b,c}\{a,b,c\} a clique? We check whether G[{a,b,c}]≅K3G[\{a,b,c\}] \cong K_3. The pairs are {a,b},{a,c},{b,c}\{a,b\}, \{a,c\}, \{b,c\} — all three are in EE. So yes, {a,b,c}\{a,b,c\} induces a triangle: G[{a,b,c}]=K3G[\{a,b,c\}] = K_3. Complement. Here n=5n=5 so (52)=10\binom{5}{2}=10, hence ∣E‾∣=10−5=5|\overline{E}| = 10 - 5 = 5. All 1010 pairs on {a,b,c,d,e}\{a,b,c,d,e\} are

ab,ac,ad,ae,bc,bd,be,cd,ce,de.ab,ac,ad,ae,bc,bd,be,cd,ce,de.

Removing the 55 edges of EE (namely ab,ac,ad,bc,ceab,ac,ad,bc,ce) leaves

E‾={ae,bd,be,cd,de}.\overline{E} = \{ae, bd, be, cd, de\}.

Duality check. Since {a,b,c}\{a,b,c\} is a clique in GG (all edges present), it must be an independent set in G‾\overline{G} (no edges present): check ab,ac,bc∉E‾ab, ac, bc \notin \overline{E} — indeed none of these three appear in E‾\overline{E} above. ✓ This illustrates the general fact that SS induces a complete subgraph in GG if and only if SS induces an edgeless subgraph in G‾\overline{G}, an immediate consequence of the complement definition (a pair is an edge of GG exactly when it is a non-edge of G‾\overline{G}). Named families. Is GG itself a path or a cycle? GG has 55 vertices and 55 edges; P5P_5 would need 44 edges and C5C_5 would need 55 edges, so edge count alone does not rule out C5C_5. But C5C_5 requires every vertex to have degree exactly 22, while here deg⁡(d)=1\deg(d) = 1 and deg⁡(a)=3\deg(a) = 3. So GG is neither P5P_5 nor C5C_5 nor any relabeling of them — it is a genuinely different graph on 55 vertices with 55 edges (a "bull"-like graph: a triangle a,b,ca,b,c with pendant edges adad and cece... actually dd hangs off aa and ee hangs off cc, two distinct pendants off the triangle).

CounterexampleDropping "induced" breaks clique detection

The theorem-adjacent fact used constantly in practice is: a vertex set SS forms a clique in GG iff G[S]=K∣S∣G[S] = K_{|S|}. This statement is about induced subgraphs. If we weaken the requirement to merely "GG has a subgraph on vertex set SS isomorphic to some graph with the right number of vertices," the clique-detection claim collapses. Concretely, reuse the graph from Example 1: V={1,…,6}V = \{1,\dots,6\}, E={{1,2},{2,3},{3,4},{4,5},{5,6},{1,6},{1,4}}E = \{\{1,2\},\{2,3\},\{3,4\},\{4,5\},\{5,6\},\{1,6\},\{1,4\}\}. Consider S={1,2,3,4,5,6}S = \{1,2,3,4,5,6\}, all six vertices. If we only ask "does GG contain some spanning subgraph with 66 vertices and at least one edge," the answer is trivially yes and tells us nothing about clique structure. Worse, if we mistakenly try to certify a clique using non-induced subgraphs: take any 44 vertices, say {1,2,4,5}\{1,2,4,5\}, and note GG has a (non-induced) subgraph on these four vertices with edges {1,2},{4,5},{1,4}\{1,2\}, \{4,5\}, \{1,4\} — three edges, matching the edge count of a path P4P_4 or even close to that of a small clique fragment. If a careless argument concluded from "there is a 33-edge subgraph on {1,2,4,5}\{1,2,4,5\}" that "{1,2,4,5}\{1,2,4,5\} is close to forming a clique K4K_4" (which needs 66 edges), it would be checking the wrong object: the induced subgraph G[{1,2,4,5}]G[\{1,2,4,5\}] has edges {1,2},{1,4},{4,5}\{1,2\}, \{1,4\}, \{4,5\} — exactly the same three, since those are indeed all the GG-edges among these vertices, and 3≠63 \ne 6, so {1,2,4,5}\{1,2,4,5\} is far from a clique. The point of the counterexample is sharper with a set where induced and arbitrary subgraphs visibly diverge: Take S={1,2,3,4}S = \{1,2,3,4\} again. We showed G[S]=C4G[S] = C_4 (four edges: 12,23,34,1412,23,34,14). If someone instead builds the subgraph HH with V(H)=SV(H)=S and only edges {1,2},{3,4}}\{1,2\},\{3,4\}\} (a valid, non-induced subgraph — just delete edges 2323 and 1414 from consideration), and mistakenly asks "does HH certify whether SS is a clique in GG?", the answer from HH alone is uninformative: HH has 22 edges, is disconnected, and looks nothing like a clique, even though the induced subgraph G[S]G[S] is the more edge-dense C4C_4, and neither HH nor G[S]G[S] is K4K_4 — but only G[S]G[S] correctly reports the true adjacency structure of GG restricted to SS. Any clique-detection procedure that inspects an arbitrary subgraph H⊆GH\subseteq G on vertex set SS, rather than the induced subgraph G[S]G[S], can be fed a sparse HH and wrongly certify "not a clique" even when G[S]G[S] is complete elsewhere, or conversely give no information when G[S]G[S] is not complete. This shows the induced-subgraph hypothesis cannot be dropped from clique-type theorems: only G[S]G[S], using all edges among SS, correctly reflects whether SS is a clique.

Scope, edge cases & common traps

SituationWhat to checkCommon error
S=∅S = \emptyset or ∣S∣=1|S|=1G[∅]G[\emptyset] is the empty graph; G[{v}]G[\{v\}] has one vertex, no edgesForgetting these are valid (trivial) induced subgraphs
H⊆GH \subseteq G but not spanningV(H)⊊VV(H) \subsetneq V is allowedAssuming subgraphs must use all vertices
Counting G‾\overline{G} edgesUse (n2)−∣E(G)∣\binom{n}{2} - |E(G)|Forgetting nn is the same vertex set for GG and G‾\overline{G}
Claiming SS is a cliqueMust verify every pair in SS is an edge of GG, i.e. inspect G[S]G[S]Checking only some pairs, or checking a non-induced subgraph
Path/cycle identificationMust match degree sequence and connectivity, not just edge countAssuming equal edge count implies isomorphic to PnP_n or CnC_n
n=1,2n=1,2 for cyclesCnC_n is only defined for n≥3n \ge 3Writing "C2C_2" as if it were a valid simple graph (would need a multi-edge)

The mathematician behind it

Origins · 1 minFrank Harary and how this was discovered
FH
Frank Harary
1921–2005 · American graph theorist, "father of modern graph theory" as a distinct discipline

Frank Harary spent decades systematizing graph theory's basic vocabulary — subgraphs, induced subgraphs, complements, and the standard named families such as KnK_n, PnP_n, and CnC_n — into the coherent framework used in every modern textbook. His 1969 book Graph Theory became the standard reference that fixed much of today's terminology, including the careful distinction between a subgraph and an induced subgraph that this article formalizes.

Harary was not the sole originator of these ideas — complement graphs and complete graphs trace to earlier combinatorics and to the graph-theoretic reformulation of Ramsey's theorem in the 1930s — but his expository and organizational work made graph theory a self-contained subject with a shared, precise vocabulary, rather than a scattered set of results borrowed from topology and combinatorics.

Origins · 1 minhow this was discovered
History
- 1736 — Euler's Königsberg bridges paper introduces graph-like reasoning, predating formal subgraph language.
- 1930 — Ramsey's theorem is published, implicitly using complete graphs and their complements to organize coloring arguments.
- 1936 — Kőnig's Theorie der endlichen und unendlichen Graphen gives one of the first systematic textbook treatments of graphs as formal objects.
- 1969 — Harary's Graph Theory standardizes terms including subgraph, induced subgraph, and complement in the form used today.
- 1970s–present — the vocabulary of KnK_n, PnP_n, CnC_n, and G‾\overline{G} becomes the shared baseline for coloring theory, Ramsey theory, and algorithmic graph theory.
What exactly is the difference between "subgraph" and "induced subgraph"?

A subgraph HH of GG only requires that V(H)⊆V(G)V(H) \subseteq V(G), E(H)⊆E(G)E(H) \subseteq E(G), and every edge of HH has both endpoints in V(H)V(H); you are free to drop some edges of GG between the chosen vertices. An induced subgraph G[S]G[S] is a specific subgraph determined entirely by the vertex set SS: it must contain every edge of GG with both endpoints in SS, with no freedom to omit any. Every induced subgraph is a subgraph, but not every subgraph is induced — the two coincide only when the chosen edge set happens to be exactly the full edge set among the chosen vertices.

Why do we care about the complement graph at all?

The complement swaps the roles of "edge" and "non-edge," which turns questions about dense structure (cliques) into equivalent questions about sparse structure (independent sets), and vice versa. This is extremely useful computationally and theoretically: many hard problems about one structure become the same hard problem about the other, and results like Ramsey's theorem are naturally phrased using a graph and its complement simultaneously (think red edges vs. blue edges in a two-coloring of KnK_n).

Is KnK_n the only graph on nn vertices with (n2)\binom{n}{2} edges?

Yes. Any simple graph on nn vertices has at most (n2)\binom{n}{2} edges, since that is the total number of distinct unordered pairs of vertices, and equality forces every pair to be an edge — which is exactly the definition of KnK_n. So KnK_n is uniquely the edge-maximal simple graph on nn vertices.

Can a graph be isomorphic to its own complement?

Yes; such graphs are called self-complementary. A necessary condition follows from Edge complementarity: since ∣E(G)∣=∣E(G‾)∣|E(G)| = |E(\overline{G})| is required, and their sum is (n2)\binom{n}{2}, we need (n2)\binom{n}{2} to be even, which forces n≡0n \equiv 0 or 1(mod4)1 \pmod 4. The smallest nontrivial example is P4P_4 (the path on 4 vertices), which is self-complementary.

Does "GG contains PkP_k as a subgraph" mean the same as "GG has a path of length kk"?

Essentially yes, with care about "length" conventions: PkP_k has kk vertices and k−1k-1 edges, so containing PkP_k as a subgraph means GG has a sequence of kk distinct vertices each consecutively adjacent, i.e. a path with k−1k-1 edges. This subgraph need not be induced — GG may have extra edges (chords) among those kk vertices, as in Example 1's graph GG, which contains P4P_4 as a subgraph even though the induced subgraph on those same vertices might be denser.

Why does clique detection specifically need induced subgraphs and not just any subgraph?

Being a clique is a statement about the complete adjacency pattern among a vertex set: every pair must be connected. That property can only be certified by looking at all edges present among the vertices, which is precisely what G[S]G[S] records. An arbitrary subgraph on SS might omit edges that are actually present in GG, hiding true adjacencies, or one could imagine restricting attention to a sparse subgraph and wrongly concluding SS is not a clique. Only the induced subgraph gives a faithful, complete picture.

How does this connect to what comes next in graph theory?

Special families and the subgraph/induced-subgraph distinction set up two major directions: bipartiteness, characterized exactly by the absence of odd cycles as subgraphs (leading to Bipartite Graphs and Characterization), and coloring, where the chromatic number is bounded below by the size of the largest complete induced subgraph (leading to Graph Coloring and Chromatic Number). Both rely on precisely the vocabulary developed here.

Before this

Where this leads