Algorithm 457: finding all cliques of an undirected graph

Coen Bron, Joep Kerbosch

1973 · Computer Science · Communications of the ACM

bttroductian.A maximal complete subgraph (clique) is a complete subgraph that is not contained in any other complete subgraph.A recent paper [1] describes a number of techniques to find maximal complete subgraphs of a given undirected graph.In this paper, we present two backtracking algorithms, using a branchand-bound technique [4] to cut off branches that cannot lead to a clique.The first version is a straightforward implementation of the basic algorithm.It is mainly presented to illustrate the method used.This version generates cliques in alphabetic (lexicographic) order.The second version is derived from the first and generates cliques in a rather unpredictable order in an attempt to minimize the number of branches to be traversed.This version tends to produce the larger cliques first and to generate sequentially cliques having a large common intersection.The detailed algorithm for ve

Open Full Paper ↗