xgi.convert.simplex
Methods for simplicial complexes.
Functions
- xgi.convert.simplex.from_max_simplices(SC)[source]
Returns a hypergraph constructed from the maximal simplices of the provided simplicial complex.
- Parameters:
SC (SimplicialComplex) –
- Return type:
- xgi.convert.simplex.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