SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Community Detection
-  Girvan Newman Algorithm
-  Newman Algorithm
Community Detectionって?
あるネットワークの中で、	
  
密にリンクされたノードの集まりを見つける。	
  

コミュニティ間は疎

コミュニティ内は密
何の役に立つ?
似た特徴を持つノード同士が密にリンクされる傾向	
  
(Assorta)ve	
  Mixing)を持つネットワークにおいて	
  

Social Networks

WWW

Route

各ノードの特徴情報を用いずに、	
  
ネットワーク構造から似たノードのグループを発見できる。	
  
2つの階層クラスタリングアルゴリズム
Girvan-Newman Algorithm
Newman,	
  M.E.J.,	
  Girvan,	
  M.,	
  2004.	
  Finding	
  and	
  evalua)ng	
  community	
  structure	
  in	
  networks.	
  	
  
Physical	
  Review	
  E,	
  69(2),	
  026113.	
  	
  

Newman Algorithm
Newman,	
  M.E.J.,	
  2004.	
  Fast	
  algorithm	
  for	
  detec)ng	
  community	
  structure	
  in	
  networks.	
  
Physical	
  Review	
  E,	
  69(6),	
  066133.	
  	
  
2つの階層クラスタリングアルゴリズム
Girvan-Newman Algorithm

Newman Algorithm
2つの階層クラスタリングアルゴリズム
Girvan-Newman Algorithm

Newman Algorithm
Girvan-Newman Algorithm
Girvan-Newman Algorithm
グラフの中で、最も「コミュニティ間をつないでいる」可能性の高いエッジを見つけ、	
  
そのエッジを除去する。	
  
コミュニティ間をつなぐエッジ、どう見つける?
Shortest-­‐path	
  betweenness	
  
同一コミュニティ内の二点間の最短経路はほとんど重複しないはず。	
  

別々のコミュニティに属する二点間の最短経路の	
  
多くが同じエッジを通過するはず。	
  
デンドログラム
出力はコミュニティ分割の入れ子構造を表すデンドログラム。	
  

ネットワーク	
  

デンドログラム	
  
デンドログラム

どのコミュニティ構造が最適かを計る指標が必要。	
  
Modularity Q
N

Q = ∑ (eii − a )
2
i

i=1

N

(-­‐1/2<=Q<=1)	
  

: コミュニティ数	
  

eii : 総エッジ数に対する	
  

  両端がコミュニティ i	
  に含まれるエッジの割合	
  

ai : 総エッジ数に対する	
  

  少なくとも片端がコミュニティ i	
  に含まれるエッジの割合	
  
Modularity Qの意味
N

Q = ∑ (eii − a )
2
i

i=1
-­‐  「コミュニティ内のエッジ数が多い」だけでは不十分。	
  
-­‐  それだと全ノードが同じコミュニティに属している場合が最大。	
  
-­‐  ランダムグラフにおけるコミュニティ内エッジ数の期待値と比較。	
  
Modularity Qの意味
同じコミュニティに属するノードv,	
  ノードwの組み合わせについて	
  

1
=
∑(Avw − Pvw )δ (Cv, Cw )
2m vw
vw間にエッジが張られていれば1,	
  	
  
無ければ0	
  

同じ度数のランダムグラフで	
  
vw間にエッジが張られる確率	
  
Modularity Qが最大になる構造を採用する。

(Newman	
  and	
  Girvan,	
  2004)	
  

Community	
  数	
  
Girvan-Newman Algorithmの欠点
計算量が非常に大きい。	
  
-­‐  消去するエッジを見つけるための	
  
	
  betweennessの計算がO(mn)	
  
	
  
-­‐  全エッジを消去するためm回繰り返すので	
  
	
  合計O((m^2)n)	
  
Newman Algorithm
Newman Algorithm
Betweennessの計算はコストが高い。	
  
モジュラリティ値を上げる事が目的なら、一々betweennessの計算をせずに	
  
最初からモジュラリティについての最大化問題と捉えたらどうか。	
  
コミュニティ併合時のモジュラリティ上昇量に着目	
  

ΔQ	
  

モジュラリティQ=0	
  

モジュラリティQ=0+ΔQ	
  
コミュニティ合併時のモジュラリティ上昇量に着目

合併時のモジュラリティ上昇が大きい	
  

合併してもモジュラリティ上昇は少ない	
  

ΔQij = Qnew − (Qi + Q j ) = eij + e ji − 2ai a j = 2(eij + ai a j )
Newman Algorithm
Newman Algorithmの計算量
	
  
-­‐  コミュニティの併合とΔQの再計算にO(m+n)	
  
-­‐  全ノードが一つのコミュニティになるまで繰り返す	
  
	
  ので、全体としてO((m+n)n)	
  
-­‐	
   後にデータ構造を工夫したCNMアルゴリズムに
	
  よってO(n	
  log^2n)まで小さくなった。	
  
	
  
Girvan Newman VS Newman

精度はほとんど同じか、Girvan-­‐Newmanの方が少し良い程度。	
  
Girvan Newman VS Newman   (Pythonで実装)
まとめ
Girvan-­‐Newman	
  Algorithm	
  
-­‐  トップダウンでコミュニティを分割していく	
  
-­‐  Shortest-­‐path	
  betweennessに基づいてエッジを消去	
  
-­‐  O((m^2)n)	
  
Newman	
  Algorithm	
  
-­‐  ボトムアップでコミュニティを併合していく	
  
-­‐  モジュラリティの最大化が目的	
  
-­‐  コミュニティ併合時のモジュラリティ上昇に着目	
  
-­‐  O((m+n)n)	
  
References
-­‐	
  Girvan-­‐Newman	
  Algorithm	
  
Newman,	
  M.E.J.,	
  Girvan,	
  M.,	
  2004.	
  Finding	
  and	
  evalua)ng	
  community	
  structure	
  in	
  networks.	
  	
  
Physical	
  Review	
  E,	
  69(2),	
  026113.	
  	
  
(hZp://arxiv.org/abs/cond-­‐mat/0308217)	
  

-­‐	
  Newman	
  Algorithm	
  
Newman,	
  M.E.J.,	
  2004.	
  Fast	
  algorithm	
  for	
  detec)ng	
  community	
  structure	
  in	
  networks.	
  	
  
Physical	
  Review	
  E,	
  69(6),	
  066133.	
  
(hZp://arxiv.org/abs/cond-­‐mat/0309508)	
  	
  

-­‐	
  CNM	
  Algorithm	
  
Clauset,	
  A.,	
  Newman,	
  M.E.J.,	
  Moore,	
  C.,	
  2004.	
  Finding	
  community	
  structure	
  in	
  very	
  large	
  networks.	
  	
  
Physical	
  Review	
  E,	
  70(6),	
  066111.	
  	
  
(hZp://arxiv.org/abs/condmat/0408187)	
  

-­‐	
  各種コミュニティ発見アルゴリズムの比較	
  
Lancichine`,	
  A.,	
  Fortunato,	
  S.,	
  2009.	
  Community	
  detec)on	
  algorithms:	
  a	
  compara)ve	
  analysis.	
  	
  
Physical	
  Review	
  E,	
  80(5),	
  056117.	
  
(hZp://arxiv.org/abs/0908.1062)	
  	
  

Mais conteúdo relacionado

Mais procurados

[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング
[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング
[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミングYuto Takei
 
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網Beckett Hsieh
 
Yahoo!TW EWC Kick-off 雅虎奇摩 新舊福委會 交接大會
Yahoo!TW EWC Kick-off  雅虎奇摩 新舊福委會 交接大會Yahoo!TW EWC Kick-off  雅虎奇摩 新舊福委會 交接大會
Yahoo!TW EWC Kick-off 雅虎奇摩 新舊福委會 交接大會Anderson Wu, PMP, CSM, 吳明展
 
Junior新趨勢:P2P支付
Junior新趨勢:P2P支付Junior新趨勢:P2P支付
Junior新趨勢:P2P支付Collaborator
 
Введення даних в ЕТ Excel
Введення даних в ЕТ ExcelВведення даних в ЕТ Excel
Введення даних в ЕТ Exceltanya-m
 
Pneumonite Intersticial não específica e Pneumonia em organização
Pneumonite Intersticial não específica e Pneumonia em organizaçãoPneumonite Intersticial não específica e Pneumonia em organização
Pneumonite Intersticial não específica e Pneumonia em organizaçãoFlávia Salame
 
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12Dimitris Psounis
 
Surgical instruments
Surgical instrumentsSurgical instruments
Surgical instrumentsalocuong
 
16. cay ghep implant tuc thi sau khi nho rang thac si le trung chanh
16. cay ghep implant tuc thi sau khi nho rang  thac si le trung chanh16. cay ghep implant tuc thi sau khi nho rang  thac si le trung chanh
16. cay ghep implant tuc thi sau khi nho rang thac si le trung chanhTài Nguyễn
 
Класифікація сайтів
Класифікація сайтівКласифікація сайтів
Класифікація сайтівvolevikt
 
סיכום קצר של הקורס במבני נתונים
סיכום קצר של הקורס במבני נתוניםסיכום קצר של הקורס במבני נתונים
סיכום קצר של הקורס במבני נתוניםcsnotes
 
General Practice Transformation Champions: Care Navigation
General Practice Transformation Champions: Care NavigationGeneral Practice Transformation Champions: Care Navigation
General Practice Transformation Champions: Care NavigationNHS England
 
Sự sửa chữa vết thương
Sự sửa chữa vết thươngSự sửa chữa vết thương
Sự sửa chữa vết thươngLE HAI TRIEU
 
簡報規劃與技巧
簡報規劃與技巧簡報規劃與技巧
簡報規劃與技巧基欽 劉
 
Gp phim ngoai mat extraoral-anatomy
Gp phim ngoai mat extraoral-anatomyGp phim ngoai mat extraoral-anatomy
Gp phim ngoai mat extraoral-anatomyHai Trieu
 
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...Télécom Paris
 
Buoc co dinh lien ham
Buoc co dinh lien hamBuoc co dinh lien ham
Buoc co dinh lien hamThanh Thai
 
Hướng tháo lắp hàm khung
Hướng tháo lắp hàm khungHướng tháo lắp hàm khung
Hướng tháo lắp hàm khungBi Hiểm
 
2_人見人愛的control-m作業請求流程
2_人見人愛的control-m作業請求流程2_人見人愛的control-m作業請求流程
2_人見人愛的control-m作業請求流程Galaxy Software Services
 

Mais procurados (20)

[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング
[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング
[Basic 11] 文脈自由文法 / 構文解析 / 言語解析プログラミング
 
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網
社會網絡分析軟體-UCNETandNodeXL教學20121120-三星課程網
 
Yahoo!TW EWC Kick-off 雅虎奇摩 新舊福委會 交接大會
Yahoo!TW EWC Kick-off  雅虎奇摩 新舊福委會 交接大會Yahoo!TW EWC Kick-off  雅虎奇摩 新舊福委會 交接大會
Yahoo!TW EWC Kick-off 雅虎奇摩 新舊福委會 交接大會
 
Junior新趨勢:P2P支付
Junior新趨勢:P2P支付Junior新趨勢:P2P支付
Junior新趨勢:P2P支付
 
Введення даних в ЕТ Excel
Введення даних в ЕТ ExcelВведення даних в ЕТ Excel
Введення даних в ЕТ Excel
 
Pneumonite Intersticial não específica e Pneumonia em organização
Pneumonite Intersticial não específica e Pneumonia em organizaçãoPneumonite Intersticial não específica e Pneumonia em organização
Pneumonite Intersticial não específica e Pneumonia em organização
 
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12
Η ΓΛΩΣΣΑ C - ΜΑΘΗΜΑ 12
 
Surgical instruments
Surgical instrumentsSurgical instruments
Surgical instruments
 
16. cay ghep implant tuc thi sau khi nho rang thac si le trung chanh
16. cay ghep implant tuc thi sau khi nho rang  thac si le trung chanh16. cay ghep implant tuc thi sau khi nho rang  thac si le trung chanh
16. cay ghep implant tuc thi sau khi nho rang thac si le trung chanh
 
Класифікація сайтів
Класифікація сайтівКласифікація сайтів
Класифікація сайтів
 
סיכום קצר של הקורס במבני נתונים
סיכום קצר של הקורס במבני נתוניםסיכום קצר של הקורס במבני נתונים
סיכום קצר של הקורס במבני נתונים
 
General Practice Transformation Champions: Care Navigation
General Practice Transformation Champions: Care NavigationGeneral Practice Transformation Champions: Care Navigation
General Practice Transformation Champions: Care Navigation
 
Sự sửa chữa vết thương
Sự sửa chữa vết thươngSự sửa chữa vết thương
Sự sửa chữa vết thương
 
簡報規劃與技巧
簡報規劃與技巧簡報規劃與技巧
簡報規劃與技巧
 
Gp phim ngoai mat extraoral-anatomy
Gp phim ngoai mat extraoral-anatomyGp phim ngoai mat extraoral-anatomy
Gp phim ngoai mat extraoral-anatomy
 
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...
Mathématiques, Informatique théorique et Recherche Opérationnelle : filière i...
 
Buoc co dinh lien ham
Buoc co dinh lien hamBuoc co dinh lien ham
Buoc co dinh lien ham
 
Hướng tháo lắp hàm khung
Hướng tháo lắp hàm khungHướng tháo lắp hàm khung
Hướng tháo lắp hàm khung
 
2_人見人愛的control-m作業請求流程
2_人見人愛的control-m作業請求流程2_人見人愛的control-m作業請求流程
2_人見人愛的control-m作業請求流程
 
Trương mạnh dũng
Trương mạnh dũngTrương mạnh dũng
Trương mạnh dũng
 

Destaque

Datamining 8th Hclustering
Datamining 8th HclusteringDatamining 8th Hclustering
Datamining 8th Hclusteringsesejun
 
Advanced Methods in Network Science: Community Detection Algorithms
Advanced Methods in Network Science: Community Detection Algorithms Advanced Methods in Network Science: Community Detection Algorithms
Advanced Methods in Network Science: Community Detection Algorithms Daniel Katz
 
大規模ネットワーク分析 篠田
大規模ネットワーク分析 篠田大規模ネットワーク分析 篠田
大規模ネットワーク分析 篠田Kosuke Shinoda
 
Community detection in social networks
Community detection in social networksCommunity detection in social networks
Community detection in social networksFrancisco Restivo
 
Communities and dynamics in social networks
Communities and dynamics in social networksCommunities and dynamics in social networks
Communities and dynamics in social networksFrancisco Restivo
 

Destaque (7)

R seminar on igraph
R seminar on igraphR seminar on igraph
R seminar on igraph
 
Datamining 8th Hclustering
Datamining 8th HclusteringDatamining 8th Hclustering
Datamining 8th Hclustering
 
Advanced Methods in Network Science: Community Detection Algorithms
Advanced Methods in Network Science: Community Detection Algorithms Advanced Methods in Network Science: Community Detection Algorithms
Advanced Methods in Network Science: Community Detection Algorithms
 
大規模ネットワーク分析 篠田
大規模ネットワーク分析 篠田大規模ネットワーク分析 篠田
大規模ネットワーク分析 篠田
 
Community detection in social networks
Community detection in social networksCommunity detection in social networks
Community detection in social networks
 
Communities and dynamics in social networks
Communities and dynamics in social networksCommunities and dynamics in social networks
Communities and dynamics in social networks
 
Roles In Networks
Roles In NetworksRoles In Networks
Roles In Networks
 

Último

自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineerYuki Kikuchi
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?akihisamiyanaga1
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 

Último (8)

自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 

Community detection