Skip to content

Commit

Permalink
Update nx_cugraph/algorithms/bipartite/centrality.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Welch <[email protected]>
  • Loading branch information
nv-rliu and eriknw authored Nov 19, 2024
1 parent 0c0b90d commit 090680f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx_cugraph/algorithms/bipartite/centrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def betweenness_centrality(G, nodes):
do_expensive_check=False,
)
top_node_ids = G._nodekeys_to_nodearray(set(nodes))
bottom_node_ids = cp.setdiff1d(
bottom_node_ids = cp.delete(
cp.arange(G._N, dtype=top_node_ids.dtype), top_node_ids
)
n = top_node_ids.size
Expand Down

0 comments on commit 090680f

Please sign in to comment.