SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
TCmtyDat () | |
TCmtyDat (const double &NodeDegFrac, const int &OutDeg) | |
void | AddQ (const int &NId, const double &Q) |
void | UpdateMaxQ () |
void | DelLink (const int &K) |
int | GetMxQNId () const |
double | GetMxQ () const |
Public Attributes | |
double | DegFrac |
TIntFltH | NIdQH |
int | MxQId |
TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::TCmtyDat | ( | ) | [inline] |
TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::TCmtyDat | ( | const double & | NodeDegFrac, |
const int & | OutDeg | ||
) | [inline] |
void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::AddQ | ( | const int & | NId, |
const double & | Q | ||
) | [inline] |
Definition at line 93 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::GetKeyId(), MxQId, and NIdQH.
Referenced by TSnap::TSnapDetail::TCNMQMatrix::Init(), and TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().
void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DelLink | ( | const int & | K | ) | [inline] |
Definition at line 98 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::DelKey(), GetMxQNId(), NIdQH, and UpdateMaxQ().
Referenced by TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().
{ const int NId=GetMxQNId(); NIdQH.DelKey(K); if (NId==K) { UpdateMaxQ(); } }
double TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQ | ( | ) | const [inline] |
Definition at line 101 of file cmty.cpp.
Referenced by TSnap::TSnapDetail::TCNMQMatrix::FindMxQEdge(), and TSnap::TSnapDetail::TCNMQMatrix::Init().
int TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQNId | ( | ) | const [inline] |
Definition at line 100 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::GetKey(), MxQId, and NIdQH.
Referenced by DelLink(), and TSnap::TSnapDetail::TCNMQMatrix::Init().
void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::UpdateMaxQ | ( | ) | [inline] |
Definition at line 95 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::FNextKeyId(), MxQId, and NIdQH.
Referenced by DelLink().
{ MxQId=-1; for (int i = -1; NIdQH.FNextKeyId(i); ) { if (MxQId==-1 || NIdQH[MxQId]< NIdQH[i]) { MxQId=i; } } }
Definition at line 87 of file cmty.cpp.
Referenced by TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().
Definition at line 89 of file cmty.cpp.
Referenced by AddQ(), GetMxQ(), GetMxQNId(), and UpdateMaxQ().
Definition at line 88 of file cmty.cpp.
Referenced by AddQ(), DelLink(), GetMxQ(), GetMxQNId(), TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ(), and UpdateMaxQ().