Article ID Journal Published Year Pages File Type
436459 Theoretical Computer Science 2006 15 Pages PDF
Abstract

We present a depth-first search algorithm for generating all maximal cliques of an undirected graph, in which pruning methods are employed as in the Bron–Kerbosch algorithm. All the maximal cliques generated are output in a tree-like form. Subsequently, we prove that its worst-case time complexity is O(3n/3) for an n-vertex graph. This is optimal as a function of n, since there exist up to 3n/3 maximal cliques in an n-vertex graph. The algorithm is also demonstrated to run very fast in practice by computational experiments.

Related Topics
Physical Sciences and Engineering Computer Science Computational Theory and Mathematics