4. Facebook
Degree Distribution – Power law
(Skewed)
Size of Giant component - 4039
20-04-2021 VANI KANDHASAMY, PSGTECH 4
Hubs / Celebrity / Influencer
5. Key Network Measures –Real World
Network
Measure Description
Degree Distribution Power Law (Few Hubs)
Clustering Coefficient High
Average Path Length Small
Connectivity / Size of Giant component Large
20-04-2021 VANI KANDHASAMY, PSGTECH 5
10. Erdös-Renyi / Random model
•Assumptions
• nodes connect at random
• network is undirected
•Key parameter (besides number of nodes N) : p or M
• p = probability that any two nodes share and edge (Gnp)
• M = total number of edges in the graph (Gnm)
20-04-2021 VANI KANDHASAMY, PSGTECH 10
12. Key Network Measures – Erdös-Renyi
model
Measure Description
Degree Distribution ?
Clustering Coefficient ?
Average Path Length ?
Connectivity / Size of Giant component ?
20-04-2021 VANI KANDHASAMY, PSGTECH 12
13. Degree distribution
•Gnp-model: For each potential
edge we flip a coin
with probability p we add the edge
with probability (1-p) we don’t
•Degree distribution of Gnp is
binomial
20-04-2021 VANI KANDHASAMY, PSGTECH 13
15. Clustering Coefficient
𝐶𝑖 =
# 𝑝𝑎𝑖𝑟𝑠 𝑜𝑓 𝑖′𝑠 𝑓𝑟𝑖𝑒𝑛𝑑𝑠 𝑤ℎ𝑜 𝑎𝑟𝑒 𝑓𝑟𝑖𝑒𝑛𝑑𝑠
# 𝑝𝑎𝑖𝑟𝑠 𝑜𝑓 𝑖′𝑠 𝑓𝑟𝑖𝑒𝑛𝑑𝑠
ei is the number of edges between
i’s friends
ki is the number of i’s friends /
degree of i
20-04-2021 VANI KANDHASAMY, PSGTECH 16
19. Giant Component
ത
𝑘=1-ε -> all components are of
size Ω(log n)
ത
𝑘 =1+ε -> 1 component of size
Ω(n), others have size
Ω(log n)
20-04-2021 VANI KANDHASAMY, PSGTECH 20
20. Key Network Measures – Erdös-Renyi
model
Measures Description
Degree Distribution Binomial
Clustering Coefficient C = p = ҧ
𝐤 / n
Average Path Length O(log n)
Connectivity / Size of Giant component GCC exists
when ҧ
𝐤 >1
20-04-2021 VANI KANDHASAMY, PSGTECH 21
21. Real world network vs. Random Network
Parameters Facebook Gnp Match
Degree Distribution
Clustering Coefficient 0.6055 0.01
Average Path Length 3.6925 2.654
Connectivity / Size of
Giant component
4039 4039 (ത
k = 20.09)
20-04-2021 VANI KANDHASAMY, PSGTECH 22
22. Summary: Erdös-Renyi model
Giant connected component
Average path length
Clustering Coefficient – no local structure
Degree Distribution – absence of hubs
20-04-2021 VANI KANDHASAMY, PSGTECH 23
24. Small World Phenomenon - Milgram’s
experiment
NE
MA
20-04-2021 VANI KANDHASAMY, PSGTECH 25
25. Small World Phenomenon - Milgram’s
experiment
Six degrees of separation
Assume each human is connected to 100 other
people then:
Step 1: reach 100 people
Step 2: reach 100*100 = 10,000 people
Step 3: reach 100*100*100 = 1,000,000 people
Step 4: reach 100*100*100*100 = 100M people
In 5 steps we can reach 10 billion people
20-04-2021 VANI KANDHASAMY, PSGTECH 26
29. high clustering
low average shortest path
Small world phenomenon
)
ln(
network N
l
graph
random
network C
C
Clustering implies edge “locality”
Randomness enables “short paths”
20-04-2021 VANI KANDHASAMY, PSGTECH 31
30. Watts-Strogatz / Small World model
Two components to the model:
1. Start with a regular lattice (High CC)
2. Rewire: (Low APL)
◦ Add edges to reach remote parts of the lattice
◦ For each edge with prob. p move the other end to a random node
20-04-2021 VANI KANDHASAMY, PSGTECH 32
31. Select a fraction p of edges
Reposition one of their endpoints
Add a fraction p of additional
edges leaving underlying lattice
intact
Watts-Strogatz / Small World model
20-04-2021 VANI KANDHASAMY, PSGTECH 33
38. Power law distribution
Straight line on a log-log plot
Exponentiate both sides to get that p(k),
normalization
constant (probabilities
over all x must sum to 1) power law exponent a
20-04-2021 VANI KANDHASAMY, PSGTECH 40
39. Generating Power Law Networks
▪Ingredient # 1: growth over time
nodes appear one by one, each selecting m other nodes at
random to connect to
▪Ingredient # 2: preferential attachment
new nodes prefer to attach to well-connected nodes over less-
well connected nodes
20-04-2021 VANI KANDHASAMY, PSGTECH 41
40. Ingredient # 1: growth over time
•one node is born at each time tick
•at time t there are t nodes
•change in degree ki of node i (born at time i, with 0 < i < t)
20-04-2021 VANI KANDHASAMY, PSGTECH 42
41. Ingredient # 1: growth over time
•How many new edges does a node accumulate since it's birth at
time i until time t?
20-04-2021 VANI KANDHASAMY, PSGTECH 43
43. Degree distribution
•Let τ(100) be the time at which node with degree e.g. 100 is born
•Then the fraction of nodes that have degree <= 100 is (t – τ)/t
20-04-2021 VANI KANDHASAMY, PSGTECH 45
45. Barabasi-Albert model
•the process starts with some initial subgraph
•each new node comes in with m edges
•probability of connecting to node i
20-04-2021 VANI KANDHASAMY, PSGTECH 47
46. To start, each vertex has an equal
number of edges (2)
◦ the probability of choosing any
vertex is 1/3
We add a new vertex, and it will
have m edges, here take m=2
◦ draw 2 random elements from the
array – suppose they are 2 and 3
Now the probabilities of selecting
1,2,3,or 4 are 1/5, 3/10, 3/10, 1/5
20-04-2021 VANI KANDHASAMY, PSGTECH 48
47. Properties of the BA graph
•The degree distribution is scale free with exponent α = 3
P(k) = 2 m2/k3
•The graph is connected
oEvery vertex is born with a link (m ≥ 1)
oIt connects to older vertices, which are part of the giant component
•The older are richer
oNodes accumulate links as time goes on
oPreferential attachment will prefer wealthier nodes
20-04-2021 VANI KANDHASAMY, PSGTECH 49
48. vertex introduced at time t=5
vertex introduced at time t=95
Barabasi-Albert
model
Age of node -> Degree of node
Degree of node -> Popularity of
node
20-04-2021 VANI KANDHASAMY, PSGTECH 50
49. Summary: Barabasi-Albert model
Giant connected component
Average path length
Degree Distribution
Clustering Coefficient – no local structure
20-04-2021 VANI KANDHASAMY, PSGTECH 51
52. How to navigate a network?
20-04-2021 VANI KANDHASAMY, PSGTECH 54
53. Decentralized Search
▪Source s only knows locations of its friends and location of the Target t
▪s does not know links of anyone else but itself
▪Geographic Navigation: s “navigates” to a node geographically closest to t
20-04-2021 VANI KANDHASAMY, PSGTECH 55