Académique Documents
Professionnel Documents
Culture Documents
Airline networks
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 15
¡ Infrastructure networks are crucial for
modeling epidemics
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0040961
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 16
Connections between political blogs
Polarization of the network [Adamic-Glance, 2005]
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 17
¡ Retweet networks:
Polarized (left), Unpolarized (rigth)
Conover, M., Ratkiewicz, J., Francisco, M. R., Gonçalves, B., Menczer, F., & Flammini, A. "Political Polarization on Twitter." (2011)
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 18
Information cascade in a social network
Vs.
Proteins targeted
Proteins targeted
by a disease
s for by a drug
ons
Links:
Collaborations
Financial
R&D
Actor 3 Albert
Protein 1 Protein 2
Protein 5
Protein 9 |N|=4
|E|=4
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 50
¡ If you connect individuals that work
with each other, you will explore a
professional network
¡ If you connect those that have a
sexual relationship, you will be
exploring sexual networks
¡ If you connect scientific papers
that cite each other, you will be
studying the citation network
¡ If you connect all papers with the same word in the title,
you will be exploring what? It is a network, nevertheless
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 51
¡ How to build a graph:
§ What are nodes?
§ What are edges?
¡ Choice of the proper network representation of
a given domain/problem determines our ability
to use networks successfully:
§ In some cases there is a unique, unambiguous
representation
§ In other cases, the representation is by no means
unique
§ The way you assign links will determine the nature of
the question you can study
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 52
Undirected Directed
¡ Links: undirected ¡ Links: directed
(symmetrical, reciprocal) (arcs)
L D
A B
M C
F
I
D
E
B G G
A
H
F
C
¡ Examples: ¡ Examples:
§ Collaborations § Phone calls
§ Friendship on Facebook § Following on Twitter
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 54
Node degree, ki: the number
Undirected
B
C
The (total) degree of a node is the
E sum of in- and out-degrees.
G
kCin = 2 kCout = 1 kC = 3
A
¡ Examples: D
¡ “Folded” networks: C
§ Author collaboration networks E
2 3 2 3
1 1
æ0 1 0 1ö æ0 0 0 1ö
ç ÷ ç ÷
ç1 0 0 1÷ ç1 0 0 0÷
A=ç A=ç
0 0 0 1÷ 0 0 0 0÷
ç ÷ ç ÷
ç1 1 1 0 ÷ø ç0 1 1 0 ÷ø
è è
Note that for a directed graph (right) the matrix is not symmetric.
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 58
¡ Represent graph as a set of edges:
§ (2, 3)
2
§ (2, 4)
3
§ (3, 2) 1
§ (3, 4)
§ (4, 5) 4
5
§ (5, 2)
§ (5, 1)
§ Large 3
1
§ Sparse
§ Allows us to quickly retrieve all 4
neighbors of a given node 5
§ 1:
§ 2: 3, 4
§ 3: 2, 4
§ 4: 5
§ 5: 1, 2
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 60
Most real-world networks are sparse
E << Emax (or k << N-1)
WWW (Stanford-Berkeley): N=319,717 ákñ=9.65
Social networks (LinkedIn): N=6,946,668 ákñ=8.87
Communication (MSN IM): N=242,720,596 ákñ=11.1
Coauthorships (DBLP): N=317,080 ákñ=6.62
Internet (AS-Skitter): N=1,719,037 ákñ=14.91
Roads (California): N=1,957,027 ákñ=2.82
Proteins (S. Cerevisiae): N=1,870 ákñ=2.39
(Source: Leskovec et al., Internet Mathematics, 2009)
2 2
3 3
æ0 1 1 0ö æ 0 2 0.5 0ö
ç ÷ ç ÷
1 0 1 1÷ 2 0 1 4÷
Aij = ç Aij = ç
ç1 1 0 0÷ ç 0.5 1 0 0÷
ç ÷ ç ÷
è0 1 0 0ø è 0 4 0 0ø
Aii = 0 Aij = A ji Aii = 0 Aij = A ji
1 N 1 N 2E
E = ∑ Aij k=
2E E = å nonzero( Aij ) k=
2 i, j=1 N 2 i , j =1 N
Examples: Friendship, Hyperlink Examples: Collaboration, Internet, Roads
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 64
¡ Self-edges (self-loops) ¡ Multigraph
(undirected) (undirected)
4 4
1 1
2 2
3 3
æ1 1 1 0ö æ0 2 1 0ö
ç ÷ ç ÷
ç 1 0 1 1÷ ç 2 0 1 3÷
Aij = Aij =
ç1 1 0 0÷ ç1 1 0 0÷
ç ÷ ç ÷
è0 1 0 1ø è0 3 0 0ø
Aii ¹ 0 Aij = A ji Aii = 0 Aij = A ji
1 N N
1 N 2E
E= å Aij + å Aii E = å nonzero( Aij ) k=
2 i , j =1,i ¹ j i =1 2 i , j =1 N
Examples: Proteins, Hyperlinks Examples: Communication, Collaboration
9/25/17 Jure Leskovec, Stanford CS224W: Analysis of Networks 65
¡ Connected (undirected) graph:
§ Any two vertices can be joined by a path
¡ A disconnected graph is made up by two or
more connected components
B B
A A
Largest Component:
Giant Component
H H
G G