You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the normalized values in betweenness_centrality seem to be incorrect when k=cudf.Series. the normalized values are not between [0, 1] and also are different from the values we get from networkx.
betweenness_centrality vertex
0 1.2 A
1 0.3 D
2 0.0 E
3 0.3 B
4 0.3 C
5 0.0 i
the values we get from networkx are {'A': 1.0, 'B': 0.25, 'C': 0.25, 'E': 0, 'D': 0.25, 'i': 0}
Environment details
Other/Misc.
No response
Code of Conduct
I agree to follow cuGraph's Code of Conduct
I have searched the open bugs and have found no duplicates for this bug report
The text was updated successfully, but these errors were encountered:
@ChuckHastings should the betweenness centrality values be integers or real numbers when normalized=False? I'm getting real numbers but I assumed when normalized=False we should get the counts of shortest paths.
The centrality score is computed by taking the ratio of total shortest paths through a vertex over all shortest paths for each s,t pair in the graph, so it's going to be a rational number represented in floating point (either float or double depending on what kind of weight you use).
Version
24.10
Which installation method(s) does this occur on?
Conda
Describe the bug.
the normalized values in
betweenness_centrality
seem to be incorrect whenk=cudf.Series
. the normalized values are not between [0, 1] and also are different from the values we get from networkx.Minimum reproducible example
Relevant log output
Environment details
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: