SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat Struct Reference
Collaboration diagram for TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat:

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
 

Detailed Description

Definition at line 1328 of file cmty.cpp.

Constructor & Destructor Documentation

TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::TCmtyDat ( )
inline

Definition at line 1332 of file cmty.cpp.

TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::TCmtyDat ( const double &  NodeDegFrac,
const int &  OutDeg 
)
inline

Definition at line 1333 of file cmty.cpp.

Member Function Documentation

void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::AddQ ( const int &  NId,
const double &  Q 
)
inline

Definition at line 1335 of file cmty.cpp.

References THash< TKey, TDat, THashFunc >::AddDat(), and THash< TKey, TDat, THashFunc >::GetKeyId().

Referenced by TSnap::TSnapDetail::TCNMQMatrix::Init(), and TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().

1335  {
1336  NIdQH.AddDat(NId, Q);
1337  if (MxQId == -1 || NIdQH[MxQId]<Q) { MxQId = NIdQH.GetKeyId(NId); }
1338  }
int GetKeyId(const TKey &Key) const
Definition: hash.h:466
TDat & AddDat(const TKey &Key)
Definition: hash.h:238

Here is the call graph for this function:

Here is the caller graph for this function:

void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DelLink ( const int &  K)
inline

Definition at line 1345 of file cmty.cpp.

References THash< TKey, TDat, THashFunc >::DelKey(), GetMxQNId(), and UpdateMaxQ().

Referenced by TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().

1345  {
1346  const int NId = GetMxQNId();
1347  NIdQH.DelKey(K); if (NId == K) { UpdateMaxQ(); }
1348  }
void DelKey(const TKey &Key)
Definition: hash.h:404

Here is the call graph for this function:

Here is the caller graph for this function:

double TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQ ( ) const
inline

Definition at line 1350 of file cmty.cpp.

References MxQId.

Referenced by TSnap::TSnapDetail::TCNMQMatrix::FindMxQEdge(), and TSnap::TSnapDetail::TCNMQMatrix::Init().

Here is the caller graph for this function:

int TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::GetMxQNId ( ) const
inline

Definition at line 1349 of file cmty.cpp.

References THash< TKey, TDat, THashFunc >::GetKey().

Referenced by DelLink(), and TSnap::TSnapDetail::TCNMQMatrix::Init().

1349 { return NIdQH.GetKey(MxQId); }
const TKey & GetKey(const int &KeyId) const
Definition: hash.h:252

Here is the call graph for this function:

Here is the caller graph for this function:

void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::UpdateMaxQ ( )
inline

Definition at line 1339 of file cmty.cpp.

References THash< TKey, TDat, THashFunc >::FNextKeyId().

Referenced by DelLink().

1339  {
1340  MxQId = -1;
1341  for (int i = -1; NIdQH.FNextKeyId(i);) {
1342  if (MxQId == -1 || NIdQH[MxQId]< NIdQH[i]) { MxQId = i; }
1343  }
1344  }
bool FNextKeyId(int &KeyId) const
Definition: hash.h:478

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

double TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DegFrac

Definition at line 1329 of file cmty.cpp.

Referenced by TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().

int TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::MxQId

Definition at line 1331 of file cmty.cpp.

Referenced by GetMxQ().

TIntFltH TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::NIdQH

Definition at line 1330 of file cmty.cpp.

Referenced by TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ().


The documentation for this struct was generated from the following file: