pnnl / HyperNetX

Python package for hypergraph analysis and visualization.
https://hypernetx.readthedocs.io
Other
500 stars 86 forks source link

remove_edges() does not remove the specified edges #111

Closed johannagehlen closed 1 year ago

johannagehlen commented 1 year ago

I passed a non-empty list containing the edge numbers to remove_edges(), all of which are present in the hypergraph, but it does not remove any edges in the hypergraph.

This is my code:

list_to_remove = [1, 2, 3] HG_removed = HG.remove_edges(list_to_remove)

but when I check: print(len(HG.edges()) and print(len(HG_removed.edges())

they are both still at 1000.

Thanks in advance for the help!

brendapraggastis commented 1 year ago

@johannagehlen We will be releasing HNX 2.0 on Saturday May 13. You will be able to remove edges using a list of edge ids. Add edge capabilities won't be supported in this release though.