3 Centrality
3 Centrality
Centrality
Pedro Ribeiro
(DCC/FCUP & CRACS/INESC-TEC)
(Heavily based on slides from Jure Leskovec and Lada Adamic @ Stanford University)
Star Wars IV Network
moviegalaxies.com
g jk (i)
C B (i)=∑
j<k g jk
Where:
gjk = the number of shortest paths connecting nodes j and k
g jk(i) = the number that node i is on.
' C B (i)
C (i)=
B
(n−1)(n−2)/2
number of pairs of vertices
excluding the vertex itself
●
why do C and D each have
betweenness 1?
●
They are both on shortest
paths for pairs (A,E), and (B,E),
and so must share credit:
- 1⁄2+1/2 = 1
●
What if it’s not so important to have
many direct friends?
●
Or be “between” others
●
But one still wants to be in the “middle”
of things, not too far from the center
Closeness Centrality:
1
C C (i)= N
∑ d (i , j)
j=1
1
C C (i)= N
∑ d (i , j)
j=1
Harmonic Centrality:
1 1
C H (i)=∑ = ∑
j≠i d (i , j) d(i , j)<∞ , j≠i d (i , j)
– Strongly correlated to closeness centrality
– Naturally also accounts for nodes j that cannot reach i
– Can be applied to graphs that are not connected
In general, there will be many different eigenvalues λ for which a non-zero eigenvector solution exists. However,
the additional requirement that all the entries in the eigenvector be non-negative implies (by the Perron–Frobenius
theorem) that only the greatest eigenvalue results in the desired centrality measure
– PageRank
●
(normalized eigen vector + random jumps)
[we will talk in detail about that later]
– Katz Centrality
●
(connections with distant neighbors are penalized)
●
Degree:
– Sum weights (non-weighted equals weight=1 for all edges)
●
Betweenness and Closeness:
– Consider weighted distance
●
Eigenvector
– Consider weighted adjacency matrix
●
Which one to use depends on what you want to
achieve or measure
– Worry about understanding the concepts
– They enlarge your graph vocabulary
Pedro Ribeiro – Node Centrality
Node Centralities: Conclusion
●
Also all (major) network analysis and visualization platforms: