Graph Data Lec
Graph Data Lec
Node Ranking
Graphs
[ Connectivity Interactivity Similar Properties Belongingness ]
[ Symmetric Asymmetric ]
Note :
- Wide variety of metrics are available to measure the influence of an entity
- No individual measure can be regarded best among all
- Each one of the measures is capturing different aspects of connectivity
depending upon domain/context of application, e.g.: retail, bank, etc.
Degree Centrality
• Degree of a node captures connectedness of local neighbourhood
(!"#$%& ℎ() !"*&+,%$)
• Normalization factor : , − 1 (maximum possibilities that many exist)
Value 0,1
!0
/0 1 =
,−1
Normalized Version
!3 4
/3 1 = = = 0.2857
15 − 1 14
More is the degree centrality (/0 1 → 1)
!;< 6 ⇒ Better compact neighborhood
/;< 1 = = = 0.4285
15 − 1 14
Directed Degree Centrality
• Degree centrality in directed graph
"#,%& "#,-./
"#,%& (⃗ = "#,-./ (⃗ =
*−1 *−1 Relatively easier to
reach from node !
• Degree centrality will miss lots of information
It only says :
Ø How large is local neighbourhood
Ø Direct-hop connectivity Difficult to reach
from node ! !
It doesn’t says :
Ø Where a node is positioned in the network
Ø Different ways to reach a node
Ø Whether node is even accessible/reachable from a distance node
Closeness Centrality
• Closeness Centrality &'( → keeps track of relative distances from node " to
other nodes in the network
• Scales directly with distance, i.e. a node twice as far, is half as central
• Special Case : If node " is connected in (1-hop) with all other nodes in the
network/community , then ∑- '(", $) = 1 ⇒ &'( = 1 (" is ideally central)
Normalization factor
&'01 = 03⁄41
9−1 &'5 = 03⁄54
&'( = &'1 = 03⁄46
∑- '(", $)
&'7 = 03⁄47
Normalized Version &'8 = 03⁄48
1 14
!"# $ = 14 =
4 + 8 + 12 + 8 32
Closeness Centrality
• An Example
Closeness centrality of node 3
1 14
./0 1 = 14 =
4 + 8 + 12 + 8 32
1 2 4 8 + 5 7 9 15 + …
12 13 10 6 + 11 14
1 14
./0 1 = 14 =
4 + 8 + 12 + 8 32
1 2 4 8 + 5 7 9 15 + 12 13 10 6 + 11 14
!"#,%& (
8
=
1+1+3+2+1+3+4+2
8
= = 0.47
17
prestige for node 1
Betweenness Centrality
• Betweenness Centrality : measure of centrality in terms of acting as
crossing point in between routes
• Designates a node to be central if it lies in maximum number of shortest
paths connecting any distinct pair of nodes in the network !.
-) ., /
() ! = +
%,',) - ., /
*" +, ,
∑&,()"
* +, ,
!" # =
-−1
⟶ any number of nodes taken two at a time
2
Betweenness Centrality … contd.
• Normalized Betweenness Centrality
*" +, ,
∑&,()"
* +, ,
!" # =
-−1
⟶ any number of nodes taken two at a time
2
Normalization factor : ?
Betweenness Centrality … contd.
• Normalized Betweenness Centrality
4- 5, 6
∑0,23-
4 5, 6
,- . =
!−1
⟶ any number of nodes taken two at a time
2
!−1 &'(C
Normalization factor : = *
2
&'(
C* = ? ?
Betweenness Centrality … contd.
• Normalized Betweenness Centrality
70 8, 9
∑3,560
7 8, 9
/0 1 =
!−1
⟶ any number of nodes taken two at a time
2
!−1 &'(C
Normalization factor : = *
2
(&'()! &'( &'* (&'.)! (&'()(&'*)
*!(&'.)!
= *!(&'.)!
= *
Betweenness Centrality … contd.
• Example 1
1 − 2 = 1/1 = 1
1
1−3=1
5. 6, 7
∑1,34. 2 1−4=1
5 6, 7
-. / = 5 6 1−5=1
"−1
2 2−3=1
3 2−4=1
4
2−5=1
• Normalization factor 3−4=1
3−5=1
(" − 1)(" − 2) 4−5=1
=?
2
• Betweenness Centrality ?
Betweenness Centrality … contd.
• Example 1
1 − 2 = 1/1 = 1
1
1−3=1
70 8, 9
∑3,560 2 1−4=1
7 8, 9
/0 1 = 5 6 1−5=1
"−1
2 2−3=1
3 2−4=1
4
2−5=1
• Normalization factor 3−4=1
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
• Betweenness Centrality ?
Betweenness Centrality … contd.
• Example 1
1−2=1
1
1−3=1
5. 6, 7
∑1,34. 2 1−4=1
5 6, 7
-. / = 5 6 1−5=1
"−1
2 2−3=1
2−4=1 = 10
3
4
2−5=1
• Normalization factor 3−4=1
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
• Betweenness Centrality ?
Betweenness Centrality … contd.
• Example 1
1−2=1
1
1−3=1
60 7, 8
∑2,450 2 1−4=1
6 7, 8
,0 . = 5 6 1−5=1
"−1
2 2−3=1
2−4=1 = 10
3
4
2−5=1
• Normalization factor 3−4=1
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
10
• Betweenness Centrality ,- . = =1
9:;< =><? 10
Betweenness Centrality … contd.
• Example 2
1 − 2 = 1/1 = 1
1
1−3=1
5. 6, 7
∑1,34. 2 1−4=1
5 6, 7
-. / = 5 6 1−5=1
"−1
2 2−3=1
3 2−4=1
4
2−5=1
• Normalization factor 3−4=1
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
• Betweenness Centrality ?
Betweenness Centrality … contd.
• Example 2
1−2=1
1
1−3=1
5. 6, 7
∑1,34. 2 1−4=1
5 6, 7
-. / = 5 6 1−5=1
"−1
2 2−3=1
2−4=1 =9
3
4
2−5=1
• Normalization factor 3−4=0
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
• Betweenness Centrality ?
Betweenness Centrality … contd.
• Example 2
1−2=1
1
1−3=1
82 9, :
∑4,672 2 1−4=1
8 9, :
,2 . = 5 6 1−5=1
"−1
2 2−3=1
2−4=1 =9
3
4
2−5=1
• Normalization factor 3−4=0
3−5=1
(" − 1)(" − 2) 5×4 4−5=1
= = 10
2 2
9
• Betweenness Centrality ,- . = = 0.9
10
Betweenness Centrality … contd.
• Example 3
1−3=?
1
1−4=1
60 7, 8
∑2,450 2 1−5=1
6 7, 8
,0 . = 5 6 1−6=1
"−1
2 3−4=1
3 3−5=1
4
3−6=1
• Normalization factor 4−5=1
4−6=1
(" − 1)(" − 2) 5×4 5−6=1
= = 10
2 2
• Betweenness Centrality ,- . = ?
Betweenness Centrality … contd.
• Example 3
1−3=0
1
1−4=0
5/ 6, 7
∑1,34/ 2 1−5=0
5 6, 7
,/ . = 5 6 1−6=0
"−1
2 3−4=0
3−5=0 =0
3
4
3−6=0
• Normalization factor 4−5=0
4−6=0
(" − 1)(" − 2) 5×4 5−6=0
= = 10
2 2
0
• Betweenness Centrality ,- . = =0
10
• Interesting Fact : Border nodes generally will have betweenness as 0
Betweenness Centrality … contd.
• Example 4
!" #$ = '⁄( = 0
!* #$ = +⁄( = 0.5
!. #$ = $⁄( = 0.667
?
!1 #$ = +⁄( = 0.5
!2 #$ = '⁄( = 0
Betweenness Centrality … contd.
• Example 4
!" #$ = '⁄( = 0
!* #$ = +⁄( = 0.5
!. #$ = $⁄( = 0.667
? border border
!" #$ = '⁄( = 0
!* #$ = +⁄( = 0.5
!. #$ = $⁄( = 0.667
!1 #$ = +⁄( = 0.5
!2 #$ = '⁄( = 0
Betweenness Centrality … contd.
• Example 5
!" # = ?
!& # =?
!'& # = 0.522
," # = 0.285
,& # = 0.285 ⟶ comparing with
,'& # = 0.428 degree centrality
Logistic Network
• Interpretation : If someone wants to have a contracts, it would be difficult
without having visited node X=? as an intermediary agent
Betweenness Centrality … contd.
• Example 5
!" # = 0.103
!) # = 0.255
!,) # = 0.522
-" # = 0.285
-) # = 0.285 ⟶ comparing with
-,) # = 0.428 degree centrality
Logistic Network
• Interpretation : If someone wants to have a contracts, it would be difficult
without having visited node 15 as an intermediary agent