HyperNetX icon indicating copy to clipboard operation
HyperNetX copied to clipboard

[joss] Most operations fail on empty hypergraph

Open szhorvat opened this issue 1 year ago • 1 comments

Describe the bug

Most operations fail on empty hypergraph.

To Reproduce

hh = hnx.Hypergraph()
hn.draw(hh) # errors
hh.is_connected() # errors
hh.bipartite() # errors

Almost all functions / methods I tried threw a non-intuitive error.

HNX 2.1.3

Ref https://github.com/openjournals/joss-reviews/issues/6016

szhorvat avatar Jan 17 '24 19:01 szhorvat

v2.3.2 addresses the non-intuitive errors for hnx.draw() and Hypergraph.bipartite()`.

On an empty hypergraph, hnx.draw() will draw a blank graph. No error is raised; Hypergraph.bipartite() will return an empty networkx graph.

hh.is_connected() will be addressed in a future patch release.

bonicim avatar Jun 06 '24 18:06 bonicim