草庐IT

graphchi

全部标签

graph - 关于来自 Graphlabs : community detection example 的 Graphchi

如果有人知道Graphchi并试图理解communitydetection.cpp代码,我需要帮助来逐步理解这段代码的作用:for(inti=0;iget_data();vid_tnblabel=neighbor_label(edgelabel,vertex.id(),vertex.edge(i)->vertex_id());std::map::iteratorexisting=counts.find(nblabel);intnewcount=0;if(existing==counts.end()){counts.insert(std::pair(nblabel,1));newcoun