Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Betweenness Centrality normalization #4974

Merged
Prev Previous commit
Next Next commit
Update python/cugraph/cugraph/tests/centrality/test_betweenness_centr…
…ality.py

Co-authored-by: Erik Welch <erik.n.welch@gmail.com>
ChuckHastings and eriknw authored Mar 19, 2025
commit 4592042ffe32a8d143f910e1ebc64cc27f253b94
Original file line number Diff line number Diff line change
@@ -550,9 +550,9 @@ def test_betweenness_centrality_nx(graph_file, directed, edgevals):
(False, True, False, None, {0: 10.0, 1: 4.0, 2: 4.0, 3: 4.0, 4: 4.0}),
(False, True, False, 1, {0: 10.0, 1: 10.0, 2: 2.5, 3: 2.5, 4: 2.5}),
(False, False, True, None, {0: 12.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
(False, False, True, 1, {0: 15.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
(False, False, True, 1, {0: 12.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
(False, False, False, None, {0: 6.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
(False, False, False, 1, {0: 7.5, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
(False, False, False, 1, {0: 6.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0}),
],
)
def test_scale_with_k_on_star_graph(normalized, endpoints, is_directed, k, expected):