SlideShare a Scribd company logo
1 of 14
Studying the behavior of Instagram
network by using graph theories and
Java
By Hessam Shafiei Moqaddam
University of California San Diego
Why Instagram?
• Rapidly growing
network
• More focused on
photos instead of users
Dataset
Follow graph
• Two users are connected if
they follow each other
Like graph
• Two users are connected if
they like the same photo
User 1
User 2
User 1
User 2
Properties
Clustering Coefficient Degree of Separation
Average Degree of Separation
for each vertex v distance[v][v] = 0
for k from 1 to |v|
for i from 1 to |v|
for j from 1 to |v|
if dist[i][j] > dist[i][k] + dist[k][j]
dist[i][j] = dist[i][k] + dist[k][j]
Average Clustering Coefficient
For each vertex v in the graph{
get the neighbors of v
k = number of neighbors
n = the number of edges between neighbors
clustering coefficient = n/
𝑘 𝑘−1
2
}
Calculate the average
Different graphs
Small world graph
• High average clustering
coefficient
• Low average degree of
separation
Scale free graph
• Small average clustering
coefficient
• Low average degree of
separation
Comparing user graphs
Clustering coefficient chart Degree of separation chart
Avg.Clusteringcoefficient
Vertices
Instagram Scale free
Small wolrd
Avg.Degreeofseparation
Vertices
Instagram Scale free
Small world
Comparing photo graphs
Clustering coefficient chart Degree of separation chart
Avg.Clusteringcoefficient
Vertices
Instagram Scale free
Small wolrd
Avg.Degreeofseparation
Vertices
Instagram Scale free
Small world
Sampling from a large graph
• Biased Random Walk with Fly Back
Input G, h (desired sample size), α
Output S (sample graph)
Pick a random node P from G
while (number of vertices in S < h)
foundANewNode = false
while !foundANewNode
choose a neighbor y of p with probability B(p,y)
if y doesn’t exit in S
p <- y
else
foundANewNode = true
add y to S
Sampling from a large graph
• Biased Random Walk with Fly Back
Input G, h (desired sample size), α
Output S (sample graph)
Pick a random node P from G
while (number of vertices in S < h)
foundANewNode = false
while !foundANewNode
choose a neighbor y of p with probability B(p,y)
if y doesn’t exit in S
p <- y
else
foundANewNode = true
add y to S
Sampling from a large graph
𝐵(𝑥, 𝑦) =
[𝑑𝑒𝑔𝑟𝑒𝑒 𝑦 ] 𝛼
𝑛∈Г(𝑥)[𝑑𝑒𝑔𝑟𝑒𝑒 𝑦 ] 𝛼
Sampling from a large graph
• Biased Random Walk with Fly Back
Input G, h (desired sample size), α
Output S (sample graph)
Pick a random node P from G
while (number of vertices in S < h)
foundANewNode = false
while !foundANewNode
choose a neighbor y of p with probability B(p,y)
if y doesn’t exit in S
p <- y
else
foundANewNode = true
add y to S
Sampling from a large graph
• Tiny sampler (by Harish Sethu and Xiaoyu Chu)
Input: G, h (desired sample size)
Output: S (sample graph)
D = MRW(G,h)
S0 = BRW-FB(G,h,0)
D0 = degree exponent of S0
S1 = BRW-FB(G,h,-1)
D1 = degree exponent of S1
α = -((D-D0)/(D1-D0))
S = BRW-FB(G,h,α)
• BRW-FB -> Biased Random Walk with Fly Back
• MRW -> Metropolized Random Walk

More Related Content

What's hot

証明プログラミング超入門
証明プログラミング超入門証明プログラミング超入門
証明プログラミング超入門Kyoko Kadowaki
 
楕円曲線入門 トーラスと楕円曲線のつながり
楕円曲線入門トーラスと楕円曲線のつながり楕円曲線入門トーラスと楕円曲線のつながり
楕円曲線入門 トーラスと楕円曲線のつながりMITSUNARI Shigeo
 
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワーク
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワークDeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワーク
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワークhirono kawashima
 
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデルDeep Learning JP
 
何もないところから数を作る
何もないところから数を作る何もないところから数を作る
何もないところから数を作るTaketo Sano
 
哲学者のための確率入門
哲学者のための確率入門哲学者のための確率入門
哲学者のための確率入門mznkn
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functionsSelvaraj John
 

What's hot (10)

証明プログラミング超入門
証明プログラミング超入門証明プログラミング超入門
証明プログラミング超入門
 
楕円曲線入門 トーラスと楕円曲線のつながり
楕円曲線入門トーラスと楕円曲線のつながり楕円曲線入門トーラスと楕円曲線のつながり
楕円曲線入門 トーラスと楕円曲線のつながり
 
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワーク
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワークDeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワーク
DeepLearning 10章 回帰結合型ニューラルネットワークと再帰型ネットワーク
 
FPDE presentation
FPDE presentationFPDE presentation
FPDE presentation
 
VECTOR CALCULUS
VECTOR CALCULUSVECTOR CALCULUS
VECTOR CALCULUS
 
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル
[DL輪読会]Deep Learning 第16章 深層学習のための構造化確率モデル
 
何もないところから数を作る
何もないところから数を作る何もないところから数を作る
何もないところから数を作る
 
ACPC 2018 Day3 G: 回文部分列 (Palindromic Subsequences)
ACPC 2018 Day3 G: 回文部分列 (Palindromic Subsequences)ACPC 2018 Day3 G: 回文部分列 (Palindromic Subsequences)
ACPC 2018 Day3 G: 回文部分列 (Palindromic Subsequences)
 
哲学者のための確率入門
哲学者のための確率入門哲学者のための確率入門
哲学者のための確率入門
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
 

Viewers also liked

Viewers also liked (6)

Perennialism (My Report)
Perennialism (My Report)Perennialism (My Report)
Perennialism (My Report)
 
Leadership Chart
Leadership ChartLeadership Chart
Leadership Chart
 
Perennialism
PerennialismPerennialism
Perennialism
 
Philosophical foundation of educ.
Philosophical foundation of educ.Philosophical foundation of educ.
Philosophical foundation of educ.
 
Perennialism Philosophies of education
Perennialism Philosophies of educationPerennialism Philosophies of education
Perennialism Philosophies of education
 
Psychological Foundations of Education (Complete)
Psychological Foundations of Education (Complete)Psychological Foundations of Education (Complete)
Psychological Foundations of Education (Complete)
 

Similar to Analyzing Instagram Network Graphs Using Java

[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...
[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...
[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...Daiki Tanaka
 
Statisticsforbiologists colstons
Statisticsforbiologists colstonsStatisticsforbiologists colstons
Statisticsforbiologists colstonsandymartin
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblasMIT
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblasgraphulo
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).pptNoorUlHaq47
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptAVUDAI1
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptDEEPUKUMARR
 
Prestation_ClydeShen
Prestation_ClydeShenPrestation_ClydeShen
Prestation_ClydeShenClyde Shen
 
Grade 9 U0-L5-Graphing
Grade 9 U0-L5-GraphingGrade 9 U0-L5-Graphing
Grade 9 U0-L5-Graphinggruszecki1
 
Perspective in Informatics 3 - Assignment 1 - Answer Sheet
Perspective in Informatics 3 - Assignment 1 - Answer SheetPerspective in Informatics 3 - Assignment 1 - Answer Sheet
Perspective in Informatics 3 - Assignment 1 - Answer SheetHoang Nguyen Phong
 
3rd NIPS Workshop on PROBABILISTIC PROGRAMMING
3rd NIPS Workshop on PROBABILISTIC PROGRAMMING3rd NIPS Workshop on PROBABILISTIC PROGRAMMING
3rd NIPS Workshop on PROBABILISTIC PROGRAMMINGChristian Robert
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingcairo university
 
Sampling from Massive Graph Streams: A Unifying Framework
Sampling from Massive Graph Streams: A Unifying FrameworkSampling from Massive Graph Streams: A Unifying Framework
Sampling from Massive Graph Streams: A Unifying FrameworkNesreen K. Ahmed
 

Similar to Analyzing Instagram Network Graphs Using Java (20)

[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...
[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...
[Paper reading] L-SHAPLEY AND C-SHAPLEY: EFFICIENT MODEL INTERPRETATION FOR S...
 
Statisticsforbiologists colstons
Statisticsforbiologists colstonsStatisticsforbiologists colstons
Statisticsforbiologists colstons
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblas
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblas
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
Graph Based Pattern Recognition
Graph Based Pattern RecognitionGraph Based Pattern Recognition
Graph Based Pattern Recognition
 
6. Graphs
6. Graphs6. Graphs
6. Graphs
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Normalizing flow
Normalizing flowNormalizing flow
Normalizing flow
 
Prestation_ClydeShen
Prestation_ClydeShenPrestation_ClydeShen
Prestation_ClydeShen
 
rugs koco.pptx
rugs koco.pptxrugs koco.pptx
rugs koco.pptx
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Grade 9 U0-L5-Graphing
Grade 9 U0-L5-GraphingGrade 9 U0-L5-Graphing
Grade 9 U0-L5-Graphing
 
Perspective in Informatics 3 - Assignment 1 - Answer Sheet
Perspective in Informatics 3 - Assignment 1 - Answer SheetPerspective in Informatics 3 - Assignment 1 - Answer Sheet
Perspective in Informatics 3 - Assignment 1 - Answer Sheet
 
3rd NIPS Workshop on PROBABILISTIC PROGRAMMING
3rd NIPS Workshop on PROBABILISTIC PROGRAMMING3rd NIPS Workshop on PROBABILISTIC PROGRAMMING
3rd NIPS Workshop on PROBABILISTIC PROGRAMMING
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
 
Sampling from Massive Graph Streams: A Unifying Framework
Sampling from Massive Graph Streams: A Unifying FrameworkSampling from Massive Graph Streams: A Unifying Framework
Sampling from Massive Graph Streams: A Unifying Framework
 
Ai part 1
Ai part 1Ai part 1
Ai part 1
 

Recently uploaded

Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 

Recently uploaded (20)

Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 

Analyzing Instagram Network Graphs Using Java

  • 1. Studying the behavior of Instagram network by using graph theories and Java By Hessam Shafiei Moqaddam University of California San Diego
  • 2. Why Instagram? • Rapidly growing network • More focused on photos instead of users
  • 3. Dataset Follow graph • Two users are connected if they follow each other Like graph • Two users are connected if they like the same photo User 1 User 2 User 1 User 2
  • 5. Average Degree of Separation for each vertex v distance[v][v] = 0 for k from 1 to |v| for i from 1 to |v| for j from 1 to |v| if dist[i][j] > dist[i][k] + dist[k][j] dist[i][j] = dist[i][k] + dist[k][j]
  • 6. Average Clustering Coefficient For each vertex v in the graph{ get the neighbors of v k = number of neighbors n = the number of edges between neighbors clustering coefficient = n/ 𝑘 𝑘−1 2 } Calculate the average
  • 7. Different graphs Small world graph • High average clustering coefficient • Low average degree of separation Scale free graph • Small average clustering coefficient • Low average degree of separation
  • 8. Comparing user graphs Clustering coefficient chart Degree of separation chart Avg.Clusteringcoefficient Vertices Instagram Scale free Small wolrd Avg.Degreeofseparation Vertices Instagram Scale free Small world
  • 9. Comparing photo graphs Clustering coefficient chart Degree of separation chart Avg.Clusteringcoefficient Vertices Instagram Scale free Small wolrd Avg.Degreeofseparation Vertices Instagram Scale free Small world
  • 10. Sampling from a large graph • Biased Random Walk with Fly Back Input G, h (desired sample size), α Output S (sample graph) Pick a random node P from G while (number of vertices in S < h) foundANewNode = false while !foundANewNode choose a neighbor y of p with probability B(p,y) if y doesn’t exit in S p <- y else foundANewNode = true add y to S
  • 11. Sampling from a large graph • Biased Random Walk with Fly Back Input G, h (desired sample size), α Output S (sample graph) Pick a random node P from G while (number of vertices in S < h) foundANewNode = false while !foundANewNode choose a neighbor y of p with probability B(p,y) if y doesn’t exit in S p <- y else foundANewNode = true add y to S
  • 12. Sampling from a large graph 𝐵(𝑥, 𝑦) = [𝑑𝑒𝑔𝑟𝑒𝑒 𝑦 ] 𝛼 𝑛∈Г(𝑥)[𝑑𝑒𝑔𝑟𝑒𝑒 𝑦 ] 𝛼
  • 13. Sampling from a large graph • Biased Random Walk with Fly Back Input G, h (desired sample size), α Output S (sample graph) Pick a random node P from G while (number of vertices in S < h) foundANewNode = false while !foundANewNode choose a neighbor y of p with probability B(p,y) if y doesn’t exit in S p <- y else foundANewNode = true add y to S
  • 14. Sampling from a large graph • Tiny sampler (by Harish Sethu and Xiaoyu Chu) Input: G, h (desired sample size) Output: S (sample graph) D = MRW(G,h) S0 = BRW-FB(G,h,0) D0 = degree exponent of S0 S1 = BRW-FB(G,h,-1) D1 = degree exponent of S1 α = -((D-D0)/(D1-D0)) S = BRW-FB(G,h,α) • BRW-FB -> Biased Random Walk with Fly Back • MRW -> Metropolized Random Walk