Description
A clique in an undirected graph is a subset of vertices where every two distinct vertices are adjacent. In other words, a clique is a complete subgraph where each vertex is connected to every other vertex within the subset.
A maximal clique is a clique that cannot be extended by including one more adjacent vertex. That is, a maximal clique is a clique that is not a subset of any other clique in the graph. It is the largest clique that can be formed starting from a given vertex or a given subset of vertices.
Bron–Kerbosch algorithm is an enumeration algorithm for finding all maximal cliques. It is widely used in application areas of graph algorithms such as computational chemistry.
Here is wiki:
https://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm
Task:
- Implement a new API for maximal cliques problem.
- Add Bron-Kerbosch algorithm for maximal cliques problem.
- Add related doc for
find_maximal_cliques
. - Add related tests.