xgi icon indicating copy to clipboard operation
xgi copied to clipboard

Functions for `Hypergraph`, `DiHypergraph`, and `SimplicialComplex` need to be generalized

Open nwlandry opened this issue 1 year ago • 3 comments

We should look into how we can potentially use the same functions in XGI for different classes.

nwlandry avatar May 30 '23 16:05 nwlandry

An issue that I ran into is that SimplicialComplex stores simplices as frozensets, not sets.

nwlandry avatar Aug 04 '23 12:08 nwlandry

How/when did you run into that issue?

leotrs avatar Aug 04 '23 22:08 leotrs

This becomes an issue when you try to inherit the remove_node function from Hypergraph in SimplicialComplex. As is, only strong node removal works in SimplicialComplex, because it remove entire edges to which the node belongs. Otherwise, the function tries to delete the node from frozensets which doesn't work.

nwlandry avatar Aug 08 '23 02:08 nwlandry