Calculating the betweenness centrality of this small graph?

8.5k Views Asked by At

I don't exactly get the calculation method for computing the betweenness centrality of nodes. Given the following graph represented as below:

enter image description here

I want to calculate the betweenness centrality of each node. The formula I believe should be $$g(v) = \sum_{s\neq t \neq v} \frac{\sigma_{st}(v)}{\sigma_{st}}$$

where $\sigma$ means the shortest path from one node s to another node t, for a certain node v involved in the path.

Question: does the $s$ and $t$ nodes represent every possible pair of nodes? To give an example, suppose $s = 1$ and $t = 4$. Then my $\sigma_{14}(2) = 1$, and similarly $\sigma_{13}(2) = 1$, and $\sigma_{15}(2) = 0$. So summing it all up, I have $g(v) = 2 / 3$, since there are 3 paths? But with the above data, how can I quickly compute by hand the betweeness centrality of each node?

If for example I have node 5 isolated from the rest of the nodes, then is $\sigma_{st}$ still 3? Because then there will be no shortest path from 1 to 5.

Going by the above example, I say the betweenness centrality of nodes 1 to 5 is 0, 2/3, 3/3, 2/3, 0, will this be correct?

But if I look at it from another perspective, there could be theoretically 10 shortest paths (5 choose 2 = 10).

Using the above information, what if I want to compute further statistics like edge centrality? Is there an efficient way to do this?

1

There are 1 best solutions below

4
On BEST ANSWER

For a vertex $v$, the pairs $(s, t)$ under consideration are such that (1) $s \neq v$, $t \neq v$ and (2) there is a shortest path from $s$ to $t$. Take your graph and vertex $2$ as an example, we have \begin{align} g(2) &= \frac{\sigma_{13}(2)}{\sigma_{13}}+\frac{\sigma_{14}(2)}{\sigma_{14}} + \frac{\sigma_{15}(2)}{\sigma_{15}}+\frac{\sigma_{34}(2)}{\sigma_{34}} + \frac{\sigma_{35}(2)}{\sigma_{35}} + \frac{\sigma_{45}(2)}{\sigma_{45}}\\ &= \frac{1}{1} + \frac{1}{1} + \frac{0}{1} + \frac{0}{1} + \frac{0}{1} +\frac{0}{1} \\ &= 2 \end{align} You can compute the betweenness of other vertices as above.