Find the size of a large clique in a graph.
A clique is a subset of nodes in which each pair of nodes is adjacent. This function is a heuristic for finding the size of a large clique in the graph.
- GNetworkX graph
- k: integer
The size of a large clique in the graph.
If the graph is directed or is a multigraph.
A function that returns an approximate maximum clique with a guarantee on the approximation ratio.
Functions for finding the exact maximum clique in a graph.
This implementation is from . Its worst case time complexity is \(O(n d^2)\), where n is the number of nodes in the graph and d is the maximum degree.
This function is a heuristic, which means it may work well in practice, but there is no rigorous mathematical guarantee on the ratio between the returned number and the actual largest clique size in the graph.