NetworkX

Previous topic

max_clique

Next topic

min_weighted_dominating_set

clique_removal

clique_removal(graph)[source]

Repeatedly remove cliques from the graph.

Results in a O(|V|/(\log |V|)^2) approximation of maximum clique & independent set. Returns the largest independent set found, along with found maximal cliques.

Parameters :

graph : NetworkX graph

Undirected graph

Returns :

max_ind_cliques : (set, list) tuple

Maximal independent set and list of maximal cliques (sets) in the graph.

References

[R103]Boppana, R., & Halldórsson, M. M. (1992). Approximating maximum independent sets by excluding subgraphs. BIT Numerical Mathematics, 32(2), 180–196. Springer.