WSC Week1 Graphs
WSC Week1 Graphs
WSC Week1 Graphs
● Research interests
■ Social computing
■ Internet measurements
■ Web computing
● Contact me
○ Email: [email protected]
2
STRUCTURE OF SESSIONS
3
OVERVIEW OF COURSE
5
ASSESSMENT
6
TIMELINE (NOT TO SCALE!)
5th Sept 12th Sept 3rd Oct 4th Nov 28th Nov 9th Dec
Leiner, Barry M., et al. "A brief history of the Internet." ACM SIGCOMM Computer Communication Review (2009)
A BRIEF HISTORY OF THE WEB
Leiner, Barry M., et al. "A brief history of the Internet." ACM SIGCOMM Computer Communication Review (2009)
A BRIEF HISTORY OF SOCIAL MEDIA
11
A BRIEF HISTORY OF SOCIAL MEDIA
12
WEEK 1: NETWORKS, RANDOM
GRAPHS AND METRICS
NETWORKS ARE EVERYWHERE
14
NETWORKS ARE EVERYWHERE
A node is a person
15
NETWORKS ARE EVERYWHERE
A node is a Twitter
account holder
16
NETWORKS ARE EVERYWHERE
A node is a YouTube
publisher
17
NETWORKS ARE EVERYWHERE
18
FACEBOOK FRIENDSHIP NETWORK
19
TERRORIST NETWORK
“SIX DEGREES OF
MOHAMMED ATTA”
UNCLOAKING
TERRORIST
NETWORKS, BY
VALDIS KREBS
20
CRIMINAL NETWORK
21
THE INTERNET
Routers/computers
are the nodes
22
https://www.wired.com/story/opte-internet-map-visualization/
THE INTERNET
AIRLINE NETWORK
24
METRO NETWORK
25
WHAT CAN NETWORKS REPRESENT?
27
IN THIS LECTURE
I will introduce:
• Networks/graphs
• Basic network measures
• Random Graphs
28
A NETWORK IS A GRAPH
29
A NETWORK IS A GRAPH
links or edges (E) A
vertices or nodes (V)
E B
D c
A graph G is a tuple (V,E) of a set of vertices V and edges E. An edge in E
connects two vertices in V.
30
A NETWORK IS A GRAPH
links or edges (E) A
vertices or nodes (V)
E B
neighbour set N(B)
D c
A graph G is a tuple (V,E) of a set of vertices V and edges E. An edge in E
connects two vertices in V.
31
A NETWORK IS A GRAPH
links or edges (E) A
vertices or nodes (V)
E B
neighbour set N(B)
D c
A graph G is a tuple (V,E) of a set of vertices V and edges E. An edge in E
connects two vertices in V.
32
A NETWORK IS A GRAPH
G=
V
E
c B
A neighbour set N(v) is the set of vertices adjacent to v: D
33
HOW TO MEASURE A GRAPH
34
NODE DEGREE
E B
The study of the degree
distribution of networks
allows the classification of D c
networks in different
categories
35
NODE DEGREE
E B
The study of the degree
distribution of networks
allows the classification of D c
networks in different
categories
36
DIRECTED & UNDIRECTED GRAPHS
A
A
E B
E B
D C
D C
Undirected Directed
Graph Graph
37
DIRECTED & UNDIRECTED GRAPHS
A
A
E B
E B
D C
D C
Undirected Directed
Graph Graph
What is in-degree and out-
degree?
Example of Undirected Graphs: Facebook, Co-presence
38
PATHS AND CYCLES A
E B
D C
D C
39
PATHS AND CYCLES A
E B
D C
D C
40
PATHS AND CYCLES A
E B
D C
D C
41
PATHS AND CYCLES A
E B
D C
D C
42
PATHS AND CYCLES A
E B
D C
D C
43
PATHS AND CYCLES A
E B
44
PATHS AND CYCLES A
E B
45
PATHS AND CYCLES A
E B
46
PATHS AND CYCLES A
E B
47
PATHS AND CYCLES A
E B
48
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
49
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
50
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
51
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
52
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
53
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
54
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
55
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
E B
D C
56
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
The diameter of the graph is the maximum distance between any pair of its nodes.
E B
D C
57
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
The diameter of the graph is the maximum distance between any pair of its nodes.
D C
58
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
The diameter of the graph is the maximum distance between any pair of its nodes.
d(A,B) = 1
A d(A,C) = 2
d(B,D) = 3
E B
D C
59
PATH LENGTH/DISTANCE
The distance (d) between two nodes in a graph is the length of the shortest path linking
the two graphs.
The diameter of the graph is the maximum distance between any pair of its nodes.
d(A,B) = 1
A d(A,C) = 2
d(B,D) = 3
E B
D C
60
CONNECTIVITY
A A
E B E B
D C D C
61
COMPONENTS
E B
D C
62
COMPONENTS
63
WHAT DO REAL GRAPHS LOOK
LIKE?
64
SMALL-WORLD PHENOMENON
MILGRAM’S EXPERIMENT
Two random people are connected through
only a few (6) intermediate acquaintances.
http://www.bbc.co.uk/news/technology-15844230
65
RECENT REMAKE
• In 2003 the experiment was redone.
66
FINDINGS
67
IT’S STILL NOT RESOLVED…
And the Facebook study that shows the average distance in 2008 was 5.28 hops, while
in 2011 it was 4.74.
68
https://www.facebook.com/notes/facebook-data-team/anatomy-of-facebook/10150388519243859
ERDOS NUMBER
70
ERDOS NUMBER
71
ERDOS NUMBER
72
ERDOS NUMBER
73
ERDOS NUMBER
74
ERDOS NUMBER
75
ERDOS NUMBER
Let’s have a Yehia
number...
76
ERDOS NUMBER
77
BACON NUMBER
78
https://oracleofbacon.org/
BACON NUMBER
79
http://www.buzzfeed.com/jtes/17-people-with-surprising-bacon-numbers#.cf6zK3ope https://oracleofbacon.org/
DUNBAR NUMBER
British anthropologist Robin Dunbar theorised that there’s a limit
to the amount of relationships a person can maintain—roughly
150.
80
CAN WE MODEL THESE GRAPHS?
81
MODELLING GRAPHS
82
RANDOM GRAPHS
83
RANDOM GRAPH MODEL
84
DEGREE DISTRIBUTION
OF RANDOM GRAPHS
A B
E C D F
The clustering coefficient defines the proportion of A’s neighbours which are
connected by an edge (are friends).
The number of triangles in which A is involved wrt to the ones it could be involved
in.
86
FORMALLY: CLUSTERING
COEFFICIENT
Local Clustering
Coefficient
Network Clustering
Coefficient
87
FORMALLY: CLUSTERING
COEFFICIENT
88
CLUSTERING COEFFICIENT:
EXAMPLE
89
CLUSTERING COEFFICIENT:
EXAMPLE
90
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
91
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
92
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
93
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
94
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
95
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
96
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
97
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
98
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
99
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
100
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
101
CLUSTERING COEFFICIENT:
EXAMPLE
Degree = 4
Links between
neighbours = 1
102
CLUSTERING COEFFICIENT
OF A RANDOM GRAPH
The clustering coefficient of a random graph is:
104
REFERENCES
• Material from Chapter 1, 2 of
• D. Easley, J. Kleinberg. Networks, Crowds, and Markets:
Reasoning About a Highly Connected World. Cambridge
University Press.
• P. Sheridan Dodds, R. Muhamad, and D. J. Watts. An
Experimental Study of Search in Global Social
Networks. Science 8. August 2003: 301 (5634), 827-
829.
• R. Albert, A. Barabasi. Statistical Mechanics of
Complex Networks. Reviews of Modern Physics (74).
Jan. 2002.
• S. Boccaletti, V. Latora, Y. Moreno, M. Chavez, D.-U.
Hwang, Complex Networks: Structure and Dynamics
Physics Reports 424 (2006) 175 .