Skip to content

Commit

Permalink
fixes issue 151 on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
brendapraggastis committed Jun 10, 2024
1 parent 50fdff1 commit 0c6aa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypernetx/algorithms/s_centrality_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _s_centrality(func, H, s=1, edges=True, f=None, return_singletons=True, **kw
vertices = h.nodes

if h.shape[edges * 1] == 1:
stats = {v: 0 for v in vertices}
stats.update({v: 0 for v in vertices})
else:
g = h.get_linegraph(s=s, edges=edges)
stats.update({k: v for k, v in func(g, **kwargs).items()})
Expand Down

0 comments on commit 0c6aa8f

Please sign in to comment.