xgi
xgi copied to clipboard
Functions for `Hypergraph`, `DiHypergraph`, and `SimplicialComplex` need to be generalized
We should look into how we can potentially use the same functions in XGI for different classes.
An issue that I ran into is that SimplicialComplex
stores simplices as frozensets, not sets.
How/when did you run into that issue?
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.