minorminer.busclique.busgraph_cache.find_clique_embedding#

busgraph_cache.find_clique_embedding(nn)#

Returns a clique embedding, minimizing the maximum chainlength given its size.

This will compute the entire clique cache if it is missing from the filesystem.

Parameters:

nn (int/iterable) – A number (indicating the size of the desired clique) or an iterable (specifying the node labels of the desired clique).

Returns:

An embedding of node labels (either nn, or range(nn)) mapped to chains of a clique embedding.

Return type:

dict