Skip to content

Commit

Permalink
Wrap _simrank_similarity_numpy s+t output in float.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Mar 26, 2024
1 parent f0a184c commit 6843709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/algorithms/similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ def _simrank_similarity_numpy(
)

if source is not None and target is not None:
return newsim[source, target]
return float(newsim[source, target])
if source is not None:
return newsim[source]
return newsim
Expand Down

0 comments on commit 6843709

Please sign in to comment.