SNA - T2-3 - Graphs and Degree
SNA - T2-3 - Graphs and Degree
A.Y. 23/24
Communication Strategies
1
Graphs
an introduction
2
Euler and the 7 bridges of Könisberg
(Prussia, 1736) today Kaliningrad
A D
A B C D
5
Directed versus undirected
Carl sent an
email to Dana
Dana sent an
email to Carl
6
Some examples
7
Can U think of other social networks?
C
E
B
A 9
Graph representations
visual plot, adjacency mantix, edge list
10
Multi-graphs
A multiple edges
multiple edges
B
11
Weighted graphs
q Weighted graph
Sometimes a weight is associated to a
link, e.g., to underline that the links
are not identical (strong/weak relationships)
Sincerity Modesty
A personality network
(Costantini et al, 2015)
Fearfulness
Dependence Greed-
Fairness
avoidance
Sentimentality Forgiveness
Inquisitiveness
Social self-esteem
Sociability
Flexibility
Unconventionality
Organization 14
Self interactions
15
Adjacency matrix
this is a12
0.3 1 0 0 row 1
1.5 3
1 1 0 1.5 0.2
0.3 1 2 2.3 A= 0 1.5 0 2.3
0.2 0 0.2 2.3 0
4
column 2 16
Symmetries
1.5 3 0.3 1 0 0a
24
1 1 0 1.5 0
0.3 1 2 2.3 A= 0 1.5 0 0a
34
0.2 0 0.2 2.3 0
4 a42 a43
18
An example
which of these representations do you like best?
Oliver
Marc
Sarah
Giulia
2 0 0 1 1 1 0
5
1
0 0 0 1 1 0
1 0 0 0 1 0
Anna A= 1 1 0 0 0 1
4
6
1 1 1 0 0 1
Thomas
0 0 0 1 1 0
which of these representations do you like best? 19
Graph plots may carry relevant info…
US republicans and democrats interactions on Twitter (2020)
speaker of US house
of representatives
republicans
democrats 20
… or may not!
21
Real networks are sparse
A=
22
Multi-layer networks
24
Storing network data
adjacency matrix versus edge list
N2 entries
L entries
0 0 1 1 1 0 1à3
0 0 0 1 1 0 1à4
1à5
1 0 0 0 1 0
A= 1 1 0 0 0 1
2à4
2à5
3à5
1 1 1 0 0 1 4à6
0 0 0 1 1 0 5à6
26
Paths
q Path
a sequence of interconnected nodes (meaning
each pair of nodes adjacent in the sequence are
connected by a link)
A B C D
q Path length
# of links involved in the path (if the path
involves n nodes then the path link is n-1)
q Cycle A B
path where starting and
ending nodes coincide
D C
27
Distances
it is not unique! 7 8
28
Small world
1 Granovetter’s
weak tie ;-)
2 4
30
Connectivity
8 0 0 0 0 0 1 1 0
7
block-diagonal matrix 31
Bridges
0 1 0 0 0 0 0 0
1 0 1 1 0 0 0 0
3 0 1 0 1 1 0 0 0
5
1 2
A= 0 1 1 0 1 0 0 0
0 0 1 1 0 1 0 0
6
0 0 0 0 1 0 1 1
4
0 0 0 0 0 1 0 1
8 0 0 0 0 0 1 1 0
7
32
Bipartite graphs
and semantic networks
33
Bipartite graphs
! ℬ
! ℬ
4
1 5 !
!
2 6
A=
3 7
!
ℬ !
8
34
Bipartite graph example
Hashtags
Tweets
those who think they are crazy enough to
change the world eventually do. 4 #GretaThunberg
#climatechange #ClimateCrisis 1
#ClimateAction #GretaThunberg #Greta
5 #climatechange
35
Meaning
36
Abstract example
2 6 5
4
7 proj
3 ecti
on on ℬ
Nodes are linked
6 if they have a
8 common
neighbour in !
7 8
37
Projection on a semantic network
#hashtags that appear in the same tweet are linked
#metoo tweets 39
Takeaways so far
q (un)Directed graphs
q Weighted and signed graphs
q Adjacency matrix & edge list
q Distances
q Giant component, isolates, bridges
q Bipartite graphs & projections
41
Degree centrality
a first approach to node importance
42
The notion of centrality
In Network Science
43
An example of node centrality
museums network
The Museum ecosystem on Twitter
Introduction
> Communities, countries
The study
United states 28,3% Mexico 4,4% 44
and some key players Unknown
United Kingdom
18,24%
10,69%
Canada
Australia
2,52%
1,89%
Node degree
undirected networks
k1 = 1 k2 = 3
k4 = 2
k2out = 3
47
Adjacency matrix and degree
k2in = 2 0 1 0 0
1 0 1 0 k2in= 2
A= 0 1 0 0
k2out = 3 0 1 1 0
k2out= 3
48
Real networks are sparse
49
Visualizing degree centrality
how to get useful insights on centrality
50
Graphical representations
of degree centrality
by size by colour
51
Degree distribution
ü a probability distribution pk
ü pk = the fraction of nodes that have degree equal to k
ü pk = # of nodes with degree k, divided by N
1
8 2
3
7 3
1 2
k=[1322] 4 6 4
pk 5
pk
0.5 k=[22222222]
0.25 1
k 0.5
1 2 3 k
1 2 3 52
Log-log plot
0.5
0.2=1/5, i.e., 1 node every 5 has degree 2
0.2
1 node
every 1000
has degree
27
53
Scale-free networks
those that follow a power-law
54
The power law
typical of social networks
ɣ is the slope of
saturation
@ low the approx.
degrees linear behaviour
plateau
@ high
degrees
a netw
a netw
sc
sc
al or k
al or k
e-
e-
fr e
fr e
e
e
ɣout = 2.6 ɣout = 2.3
56
The ultra-small-world
of scale-free networks
Small world
Ultra small world hubs not
large hubs significantly large
ɣ, the slope
57
Scale-free networks
versus random networks
Random Scale-free
network network
a netw
sc
a network
al or k
e-
with a scale
fr e
e
Ø Randomly wired network Ø Power-law network
Ø Has smaller hubs Ø Has big hubs
Ø Needs a linear plot Ø Needs a log-log plot
58
Preferential attachment
a simple concept that (partially) explains the power-law
q Citation network
researchers decide what papers to read and cite by
“copying” references from papers they have read à
papers with more citations are more likely to be cited
q Social network
the more acquaintances an individual has, the higher
the chancer of getting new friends, i.e., we “copy” the
friends of friends à difficult to get friends if you have
none
q Semantic network
does the model apply here?
60
Attractiveness
a further essential concept to explain the power-law
node node
degree degree
Attractiveness (log)
(linear)
re
tu
fu
s4
ay
r id
ction
#f
a te a
#c l i m c l i m ate
c t i o non
#a
time time
62
Takeaways
63