Skip to main content

Module cliques

Module cliques 

Source
Expand description

Clique algorithms (ALGO-CL-001).

Bron-Kerbosch algorithm with pivot for enumerating maximal cliques, plus convenience functions for clique number and largest cliques.

Functionsยง

clique_number
Returns the clique number of the graph (size of the largest clique).
clique_size_hist
Returns a histogram of clique sizes, counting all cliques.
cliques
Finds all cliques (complete subgraphs) in the graph within a size range.
independence_number
Returns the independence number of the graph (size of the largest independent set).
independent_vertex_sets
Finds all independent vertex sets within a size range.
largest_cliques
Returns only the largest cliques in the graph.
largest_independent_vertex_sets
Returns only the largest independent vertex sets in the graph.
largest_weighted_cliques
Returns every clique of maximum total weight.
maximal_cliques
Returns all maximal cliques in the graph.
maximal_cliques_count
Counts the number of maximal cliques without storing them.
maximal_cliques_hist
Returns a histogram of maximal clique sizes.
maximal_cliques_subset
Returns maximal cliques containing at least one vertex from subset.
maximal_independent_vertex_sets
Returns all maximal independent vertex sets in the graph.
weighted_clique_number
Returns the weight of the maximum-weight clique.
weighted_cliques
Finds all cliques whose total weight lies in a given range.