First, I listed all shortest path pairs. The resulted is attached. Within this file, we can get the statistical result:
The total number of shortest paths is: 137
The number of those paths including 'Medici' is: 86
The number of those paths begin with 'Medici' is: 17
The number of those paths begin with 'Medici' is: 2
The number of those paths passing through 'Medici' is: 67
The betweenness centrality of node 'Medici' is: 0.489051 which does not correspond to 0.52.
Expect to hear from you.
Nice weekeed.
SU
I calculated the betweenness centrality for the following example:But the result doesn't make sense. Based on definitions,(i). the number of all-pairs shortest paths is (n-1)(n-2)/2 = 55 where n denotes the number of nodes, since there is only one shortest path between any two nodes;(ii). the number of paths passing through say node A: 4(X--->B) + 4(X---->C) + 4*4(X----->Y)=24Thus, the betweenness centrality of node A equals 24/55=0.44, not 0.53.