Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Nov 12, 2024
1 parent f7e1aa9 commit 420477d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/algorithms/test_centrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ def test_uniform_h_eigenvector_centrality():
H = xgi.Hypergraph([[1, 2], [2, 3, 4]])
xgi.uniform_h_eigenvector_centrality(H)

# non-convergence
with pytest.raises(XGIError):
H = xgi.Hypergraph([[1, 2], [2, 3, 4]])
xgi.uniform_h_eigenvector_centrality(H, max_iter=2)


def test_node_edge_centrality():
# test empty hypergraph
Expand Down

0 comments on commit 420477d

Please sign in to comment.