SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Classes | |
struct | TCmtyDat |
Public Member Functions | |
TCNMQMatrix (const PUNGraph &Graph) | |
void | Init (const PUNGraph &Graph) |
TFltIntIntTr | FindMxQEdge () |
bool | MergeBestQ () |
Static Public Member Functions | |
static double | CmtyCMN (const PUNGraph &Graph, TCnComV &CmtyV) |
Private Attributes | |
THash< TInt, TCmtyDat > | CmtyQH |
THeap< TFltIntIntTr > | MxQHeap |
TUnionFind | CmtyIdUF |
double | Q |
Clauset-Newman-Moore community detection method. At every step two communities that contribute maximum positive value to global modularity are merged. See: Finding community structure in very large networks, A. Clauset, M.E.J. Newman, C. Moore, 2004
|
inline |
|
inlinestatic |
Definition at line 1428 of file cmty.cpp.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddDat(), TUNGraph::BegNI(), CmtyIdUF, TUNGraph::EndNI(), TUnionFind::Find(), TVec< TVal, TSizeTy >::Gen(), THash< TKey, TDat, THashFunc >::Len(), MergeBestQ(), Q, and TVec< TVal, TSizeTy >::Swap().
Referenced by TSnap::CommunityCNM().
|
inline |
Definition at line 1380 of file cmty.cpp.
References CmtyQH, MxQHeap, TTriple< TVal1, TVal2, TVal3 >::Val1, TTriple< TVal1, TVal2, TVal3 >::Val2, and TTriple< TVal1, TVal2, TVal3 >::Val3.
Referenced by MergeBestQ().
|
inline |
Definition at line 1360 of file cmty.cpp.
References TUnionFind::Add(), TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::AddQ(), TUNGraph::BegNI(), CmtyIdUF, CmtyQH, TUNGraph::EndNI(), TUNGraph::GetEdges(), TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQ(), TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQNId(), TUNGraph::GetNI(), TUNGraph::TNodeI::GetOutDeg(), MxQHeap, Q, and TMath::Sqr().
Referenced by TCNMQMatrix().
|
inline |
Definition at line 1391 of file cmty.cpp.
References TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::AddQ(), CmtyIdUF, CmtyQH, TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DegFrac, TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DelLink(), THash< TKey, TDat, THashFunc >::Empty(), FindMxQEdge(), THash< TKey, TDat, THashFunc >::FNextKeyId(), THash< TKey, TDat, THashFunc >::GetDat(), THash< TKey, TDat, THashFunc >::GetKey(), THash< TKey, TDat, THashFunc >::IsKey(), TMath::Mn(), TMath::Mx(), MxQHeap, TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::NIdQH, Q, TUnionFind::Union(), TTriple< TVal1, TVal2, TVal3 >::Val1, TTriple< TVal1, TVal2, TVal3 >::Val2, and TTriple< TVal1, TVal2, TVal3 >::Val3.
Referenced by CmtyCMN().
|
private |
Definition at line 1353 of file cmty.cpp.
Referenced by CmtyCMN(), Init(), and MergeBestQ().
Definition at line 1351 of file cmty.cpp.
Referenced by FindMxQEdge(), Init(), and MergeBestQ().
|
private |
Definition at line 1352 of file cmty.cpp.
Referenced by FindMxQEdge(), Init(), and MergeBestQ().
|
private |
Definition at line 1354 of file cmty.cpp.
Referenced by CmtyCMN(), Init(), and MergeBestQ().