zzz24512653 / CommunityDetection

Implements of community detection algorithms
354 stars 174 forks source link

LPA标签传播算法两处优化 #20

Open polaris2013 opened 4 years ago

polaris2013 commented 4 years ago

在LPA.py里excute方法 第56行 for i in range(self._n): 和 can_stop里 的for i in range(self._n): 是假设节点id都是顺序排列的,如果是打散的就会报no item key, 应改为for i in G.node: 比较通用