A clique is a set of vertices that are all adjacent to one another. Cliques represent complete mutual compatibility, complete interaction, or complete connectivity. They are among the most important structures in graph theory and appear throughout combinatorics, optimization, computer science, social networks, biology, and statistics. (en.wikipedia.org)
If independent sets describe sparse structure, then cliques describe dense structure. Much of graph theory studies the tension between these two extremes.
Clique problems are central in extremal graph theory and computational complexity.
64.1 Definition
Let
be a graph.
A subset
is called a clique if every pair of distinct vertices in is adjacent.
Equivalently,
Thus the subgraph induced by is complete.
For example, in the graph:
if the edges
exist, then:
forms a clique.
64.2 Clique Number
A clique is maximum if it has largest possible size.
The size of a maximum clique is called the clique number and is denoted by:
Thus:
The maximum clique problem asks for a clique of largest possible size.
This problem is one of the classical NP-complete problems.
64.3 Maximal and Maximum Cliques
The terms maximal and maximum have different meanings.
| Term | Meaning |
|---|---|
| Maximal clique | Cannot be enlarged |
| Maximum clique | Largest possible clique |
Every maximum clique is maximal.
The converse is false.
Example
Suppose a graph contains:
| Clique | Size |
|---|---|
The second clique may still be maximal if no additional vertex can be added.
64.4 Cliques in Standard Graphs
Complete Graphs
For the complete graph:
every subset of vertices forms a clique.
Thus:
Empty Graphs
If a graph contains no edges, then:
No two vertices are adjacent.
Paths
For the path graph ,
when
Every edge forms a clique of size , but no larger clique exists.
Cycles
For cycle graphs:
| Graph | Clique Number |
|---|---|
Longer cycles contain no triangles.
Complete Bipartite Graphs
For
Vertices inside the same part are never adjacent.
64.5 Cliques and Independent Sets
Cliques and independent sets are dual under graph complementation.
Let
be the complement graph.
Then:
if and only if
Therefore:
\omega(G)=\alpha(\overline{G})
This duality is fundamental.
Many clique results can be translated into independent-set results and vice versa.
64.6 Cliques and Coloring
Graph coloring partitions vertices into independent sets.
Since every pair of vertices in a clique must receive different colors:
\chi(G)\ge \omega(G)
Thus the clique number provides a lower bound for the chromatic number.
Example
Since:
the complete graph requires colors.
In many graphs, however:
$$ \chi(G)
\omega(G). $$
Perfect graphs are precisely the graphs where equality always holds for every induced subgraph.
64.7 Triangle-Free Graphs
A graph is triangle-free if it contains no clique of size .
Equivalently:
Triangle-free graphs may still contain many edges.
For example, complete bipartite graphs are triangle-free regardless of size.
Triangle-free graphs play an important role in extremal graph theory.
64.8 Clique Detection
Determining whether a graph contains a clique of size is called the clique decision problem.
Input:
| Object | Description |
|---|---|
| Graph | Arbitrary graph |
| Integer | Desired clique size |
Question:
Does contain a clique with at least vertices?
This problem is NP-complete. (en.wikipedia.org)
64.9 Maximum Clique Problem
The optimization version asks for:
This problem is computationally difficult.
No polynomial-time algorithm is known for arbitrary graphs.
The problem is also difficult to approximate well.
Maximum clique is one of the standard benchmark problems in combinatorial optimization.
64.10 Clique Search Algorithms
Brute Force
Test every subset of vertices.
This requires:
subsets.
Backtracking
Recursive search prunes impossible extensions.
Branch-and-Bound
Upper bounds eliminate many search branches.
Heuristic Methods
Practical methods often use:
| Method | Idea |
|---|---|
| Greedy search | Build dense subsets |
| Local improvement | Refine candidate cliques |
| Randomization | Explore search space |
Exact algorithms remain exponential in worst case.
64.11 Bron-Kerbosch Algorithm
The Bron-Kerbosch algorithm is the classical recursive algorithm for enumerating maximal cliques. (en.wikipedia.org)
Main Idea
Maintain three sets:
| Set | Meaning |
|---|---|
| Current clique | |
| Possible extensions | |
| Already processed vertices |
The recursion systematically explores all maximal cliques.
Modern versions use pivoting for efficiency.
64.12 Cliques and Ramsey Theory
Ramsey theory studies unavoidable structure in large graphs.
A graph with many vertices must contain either:
| Structure | Interpretation |
|---|---|
| Large clique | Strong density |
| Large independent set | Strong sparsity |
The Ramsey number:
is the smallest integer such that every graph with at least vertices contains either:
| Object | Size |
|---|---|
| Clique | |
| Independent set |
Clique theory therefore lies at the center of Ramsey theory.
64.13 Turán’s Theorem
Turán’s theorem determines the maximum number of edges in a graph avoiding large cliques.
Theorem 64.1. Turán’s Theorem
Among all graphs on vertices containing no clique of size:
the graph with the maximum number of edges is the complete -partite balanced graph.
This theorem is foundational in extremal graph theory.
64.14 Cliques and Social Networks
In social network analysis, cliques represent groups where every member knows every other member.
Real social networks rarely contain large exact cliques because complete mutual interaction is difficult to maintain.
Instead, approximate clique structures are often studied.
Clique-based methods help detect tightly connected communities.
64.15 Clique Graphs
The clique graph of is constructed by:
| Vertex in Clique Graph | Represents |
|---|---|
| A maximal clique of | One clique |
Two clique-vertices are adjacent if the corresponding maximal cliques intersect.
Clique graphs appear in structural graph theory and intersection graph theory.
64.16 Weighted Cliques
Suppose each vertex has weight:
The weighted clique problem seeks a clique maximizing:
Weighted cliques appear in:
| Area | Interpretation |
|---|---|
| Bioinformatics | High-confidence interaction groups |
| Finance | Compatible investment clusters |
| Pattern recognition | Dense feature groups |
64.17 Clique Polytope
Introduce variables:
The clique optimization problem becomes:
subject to:
for every nonedge:
These inequalities enforce pairwise adjacency among selected vertices.
The clique polytope is central in polyhedral combinatorics.
64.18 Perfect Graphs
A graph is perfect if:
for every induced subgraph .
Perfect graphs include:
| Graph Class | Perfect? |
|---|---|
| Bipartite graphs | Yes |
| Chordal graphs | Yes |
| Interval graphs | Yes |
Perfect graph theory studies graphs where clique and coloring structure align exactly.
64.19 Random Graphs
In random graphs:
the clique number grows slowly relative to .
Typically:
is logarithmic in when is fixed.
Random graph theory studies thresholds for clique emergence.
64.20 Applications
Cliques appear throughout mathematics and applications.
| Application | Clique Meaning |
|---|---|
| Social networks | Mutual friendship groups |
| Bioinformatics | Strong interaction clusters |
| Scheduling | Compatible resource groups |
| Pattern recognition | Consistent feature sets |
| Communication systems | Fully connected subnetworks |
| Data mining | Dense association groups |
The concept models complete pairwise compatibility.
64.21 Common Relationships
| Parameters | Relation |
|---|---|
| Clique and independent set | |
| Clique and coloring | |
| Triangle-free graphs |
These identities connect density, sparsity, and coloring structure.
64.22 Exercises
Compute .
Compute .
Determine the clique number of .
Prove:
Show that every clique requires distinct colors in a proper coloring.
Give an example of a maximal clique that is not maximum.
Find all maximal cliques in a small graph.
Explain why triangle-free graphs satisfy:
State Turán’s theorem in your own words.
Explain why the maximum clique problem is computationally difficult.