• Nenhum resultado encontrado

Node Centrality

N/A
N/A
Protected

Academic year: 2023

Share "Node Centrality"

Copied!
46
0
0

Texto

(1)

Node

Centrality

Pedro Ribeiro

(DCC/FCUP & CRACS/INESC-TEC)

(2)

Pedro Ribeiro – Node Centrality

Star Wars IV Network

moviegalaxies.com

Are all nodes “equal”? How to measure their importance?

(3)

Star Wars IV Network

(4)

Pedro Ribeiro – Node Centrality

Star Wars IV Network

Size proportional to betweenness

(5)

Star Wars IV Network

(6)

Pedro Ribeiro – Node Centrality

Why degree is not enough

(7)

Why degree is not enough

(8)

Pedro Ribeiro – Node Centrality

Different notions of centrality

Node Centrality measures “importance”

(9)

Node Degree

Let’s put some numbers to it

Undirected degree:

e.g. nodes with more friends are more central.

Assumption: the connections that your friend has don't

matter, it is what they can do directly that does (e.g. go

(10)

Pedro Ribeiro – Node Centrality

Node Degree

Normalization:

divide degree by the max. possible, i.e. (N-1)

(11)

Node Degree

example financial trading networks

high in-centralization:

one node buying from many others

low in-centralization:

buying is more evenly

distributed

(12)

Pedro Ribeiro – Node Centrality

What does degree not capture?

In what ways does degree fail to capture

centrality in the following graphs?

(13)

Brokerage not captured by degree

(14)

Pedro Ribeiro – Node Centrality

Brokerage: Concept

(15)

Brokerage: Concept

(16)

Pedro Ribeiro – Node Centrality

Capturing Brokerage

Betweenness Centrality:

intuition: how many pairs of individuals would have to go through you in order to reach one another in the

minimum number of hops?

(17)

Betweenness: Definition

Where:

g

jk

= the number of shortest paths connecting nodes j and k g

jk

(i) = the number that node i is on.

Usually normalized by:

C B ( i )= ∑

j < k

g jk ( i ) g jk

C ' B ( i )= C B ( i )

( n −1 )( n− 2 )/ 2

(18)

Pedro Ribeiro – Node Centrality

Betweenness: Toy Networks

Non-normalized version:

(19)

Betweenness: Toy Networks

Non-normalized version:

– A lies between no two other vertices

– B lies between A and 3 other vertices: C, D, and E

– C lies between 4 pairs of vertices: (A,D),(A,E),(B,D),(B,E)

note that there are no alternate paths for these pairs

to take, so C gets full credit

(20)

Pedro Ribeiro – Node Centrality

Betweenness: Toy Networks

Non-normalized version:

(21)

Betweenness: Toy Networks

Non-normalized version:

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

(22)

Pedro Ribeiro – Node Centrality

Betweenness: Toy Networks

Non-normalized version:

What is the betweenness

of node E?

(23)

Betweenness: Real Example

Social Network (facebook)

nodes are sized by degree, and colored by betweenness

(24)

Pedro Ribeiro – Node Centrality

Betweenness: Question

Find a node that has high betweenness

but low degree

(25)

Betweenness: Question

Find a node that has low betweenness but

high degree

(26)

Pedro Ribeiro – Node Centrality

Closeness Centrality

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

(27)

Closeness Centrality

Need not be in brokerage position

(28)

Pedro Ribeiro – Node Centrality

Closeness: Definition

Closeness is based on the length of the average shortest path between a node and all other nodes in the network

Closeness Centrality:

Normalized Closeness Centrality:

C C ( i )= 1

j =1 N

d ( i , j )

C C ' ( i )= C C ( i )×( n− 1 ) When graphs are big, the

-1 can be discarded and

we multiply by n

(29)

Closeness: Toy Networks

(30)

Pedro Ribeiro – Node Centrality

Closeness: Toy Networks

(31)

Closeness: Question

Find a node which has relatively high degree

but low closeness

(32)

Pedro Ribeiro – Node Centrality

Closeness: Question

Find a node which has low degree but

high closeness

(33)

Closeness: unconnected graph

What if the graph is not connected?

instead of null, we could also interpret it as 0 if infinity is the distance

between unconnected nodes

C C ( i )= 1

j =1 N

d ( i , j )

(34)

Pedro Ribeiro – Node Centrality

Harmonic: Definition

Replace the average distance with the harmonic mean of all distances

Harmonic Centrality:

– Strongly correlated to closeness centrality

– Naturally also accounts for nodes j that cannot reach i

– Can be applied to graphs that are not connected Normalized Harmonic Centrality:

C H ( i )= ∑

j ≠i

1

d ( i , j ) = ∑

d ( i , j )<∞ , j ≠i

1

d ( i , j )

C ' H ( i )=C H ( i )/( n −1 )

(35)

Harmonic: Toy Networks

Non-normalized version:

(36)

Pedro Ribeiro – Node Centrality

Closeness vs Harmonic

Closeness Centrality Harmonic Centrality

C H ( i )= ∑

j ≠i

1 d ( i , j ) C C ( i )= 1

j =1 N

d ( i , j )

(37)

Eigenvector Centrality

How “central” you are depends on how “central”

your neighbors are

(38)

Pedro Ribeiro – Node Centrality

Eigenvector Centrality

Eigenvector Centrality:

where λ is a constant and

A

ij

the adjacency matrix (1 if (i,j) are connected, 0 otherwise)

(with a small rearrangement) this can we rewritten in vector notation as in the eigenvector equation

where x is the eigenvector, and its i-th component is the centrality of node i

C E ( i )= 1

λ ∑

j=1 n

A ji ×C E ( j )

Ax = λ x

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

(39)

Bonacich eigenvector centrality

also known as Bonacich Power Centrality

(40)

Pedro Ribeiro – Node Centrality

Bonacich eigenvector centrality

also known as Bonacich Power Centrality

(41)

Eigenvector Variants

There are other variants of eigenvector centrality, such as:

PageRank

(normalized eigen vector + random jumps) [we will talk in detail about that later]

Katz Centrality

(connections with distant neighbors are penalized)

(42)

Pedro Ribeiro – Node Centrality

Centrality in Directed Networks

Degree:

– in and out centrality

Betweenness:

– Consider only directed paths:

– When normalizing take care of ordered pairs

Closeness

– Consider only directed paths

Eigenvector (already prepared)

C ' B ( i )= C B ( i )

( n −1 )( n − 2 ) number of ordered pairs is 2x the number of unordered

C B ( i )= ∑

j≠ k

g jk ( i )

g jk

(43)

Centrality in Weighted Networks

Degree:

– Sum weights (non-weighted equals weight=1 for all edges)

Betweenness and Closeness:

– Consider weighted distance

Eigenvector

– Consider weighted adjacency matrix

(44)

Pedro Ribeiro – Node Centrality

Node Centralities: Conclusion

There are other node centrality metrics, but these are the “quintessential”

Which one to use depends on what you want to achieve or measure

– Worry about understanding the concepts

– They enlarge your graph vocabulary

(45)

Node Centralities: Conclusion

Betweenness Closeness Eigenvector

(46)

Pedro Ribeiro – Node Centrality

Node Centralities: Conclusion

All (major) network analysis packages provide them:

Also all (major) network analysis and visualization platforms:

Referências

Documentos relacionados

Avise seu médico ou farmacêutico antes de usar qualquer outro tipo de medicamento, incluindo os que não precisam de prescrição médica (“venda livre”, vitaminas e produtos à

R.: Emergency Care, In: Handboock of Veterinary Procedures and Emergency Treatment, 7th edition, Edited by Kirk and Bistneer`s, HB Saunders Company, 2000. R.: Patient

Visto que o YouTube (rede de grande impacto junto dos jovens, como apurado nos Focus Groups), seguido do Twitter e do Vimeo, são as redes sociais com menor projeção para o

Em resumo, a oferta é majoritariamente pública, urbana e para os brancos. Os indicadores de acesso, sucesso e permanência apresentam evolução negativa, os fluxos

(2) The influence of flow rate and fluid viscosity in the residence time distribution was studied using a mixture of the large particles of low density with

Visando à avaliação do ISAREG foram comparados os valores de evapotranspiração da cultura (ETc) obtidos em campo, através da metodologia do balanço hídrico no solo, com os

As práticas sociais representam terreno fértil para a efetivação de estudos de letramento que rebuscam no espaço escolar a sistematização dos saberes produzidos,

Posteriormente Gardon e Akfirat 1966 fizeram um estudo experimental do coeficiente local e médio de transferência de calor entre um prato de impacto isotérmico e o jacto quer para