find_cliques#
- iskra.topology.find_cliques(edges: Tensor, max_d: int) list[Tensor][SOURCE]#
Finds all cliques in a graph for all sizes up to max_d.
Given an edge soup, this helps us find all simplices up that can be formed by combining the different edges that have common vertices. Taken from https://stackoverflow.com/questions/48081912/converting-adjacency-matrix-to-abstract-simplicial-complex.
- Parameters:
- Returns:
(list[
Tensor]) – list of tensors such that the Nth tensor contains the simplices with N vertices.