A clique in a simple graph is a set of vertices such that every pair of distinct members is adjacent. Equivalently, its induced subgraph is a complete graph. The surrounding graph need not itself be complete: a clique describes complete pairwise connectivity within a selected group.
Consider the original graph withThe set is a clique because all three pairs are edges. The set is not a clique: the edge is missing. A path in a graph connecting all selected vertices is therefore insufficient; every pair must have a direct edge.
Here the clique number is . The maximum clique is , but and are also maximal cliques. This distinction is useful when an algorithm stops as soon as its current clique cannot be enlarged: that stopping condition establishes maximality, while finding the largest possible clique is a separate requirement.
In graph theory, a **clique** is a subset of vertices in an undirected graph such that every two distinct vertices in the clique are adjacent. In simpler terms, a clique is a complete subgraph where every vertex is connected to every other vertex. More formally, a clique of size \( k \) is a set of \( k \) vertices such that there are edges between every pair of vertices in that set.
New to topics? Read the docs here!
