Open
Description
A few days ago a user posted an issue describing calculation's from NetworkX not matching against Graphblas's implementation on SO. Thought i'd pass on the details along as another kind gent has described where he believes the issue may be and I'm unable to verify if they're on the right track.
Original post: https://stackoverflow.com/questions/78383991/why-does-graphblas-return-different-results-as-networkx/78402677#78402677
import networkx as nx
import graphblas_algorithms as ga
G = nx.DiGraph([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)])
nx.in_degree_centrality(G)
{0: 0.0, 1: 0.3333333333333333, 2: 0.6666666666666666, 3: 0.6666666666666666}
GG = ga.Graph.from_networkx(G)
ga.in_degree_centrality(GG)
0 1 2 3
1.0 0.666667
Metadata
Metadata
Assignees
Labels
No labels