xgi.convert.simplex#

Methods for simplicial complexes.

Functions

from_max_simplices(SC)[source]#

Returns a hypergraph constructed from the maximal simplices of the provided simplicial complex.

Parameters:

SC (SimplicialComplex) –

Return type:

Hypergraph

from_simplex_dict(d, create_using=None)[source]#

Creates a Simplicial Complex from a dictionary of simplices, if the subfaces of existing simplices are not given in the dict then the function adds them with integer IDs.

Parameters:
  • d (dict) – A dictionary where the keys are simplex IDs and the values are containers of nodes specifying the simplices.

  • create_using (SimplicialComplex constructor, optional) – The simplicial complex object to add the data to, by default None

Returns:

The constructed simplicial complex object

Return type:

SimplicialComplex object

k_skeleton(SC, order)[source]#

Returns the k-skeleton of the simplicial complex.

The \(k\)-skeleton of a simplicial complex is the subcomplex containing all the simplices of the original complex of dimension at most \(k\).

Parameters:
  • SC (SimplicialComplex) – The simplicial complex to return the k-skeleton of.

  • order (int) – The order (k) of the skeleton to return.

References

https://en.wikipedia.org/wiki/N-skeleton