SNAP Library 2.0, User Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat Struct Reference

List of all members.

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 86 of file cmty.cpp.


Constructor & Destructor Documentation

Definition at line 90 of file cmty.cpp.

: MxQId(-1) { }
TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::TCmtyDat ( const double &  NodeDegFrac,
const int &  OutDeg 
) [inline]

Definition at line 91 of file cmty.cpp.

                                                           : 
      DegFrac(NodeDegFrac), NIdQH(OutDeg), MxQId(-1) { }

Member Function Documentation

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

Definition at line 93 of file cmty.cpp.

                                               { NIdQH.AddDat(NId, Q);
      if (MxQId==-1 || NIdQH[MxQId]<Q) { MxQId=NIdQH.GetKeyId(NId); } }
void TSnap::TSnapDetail::TCNMQMatrix::TCmtyDat::DelLink ( const int &  K) [inline]

Definition at line 98 of file cmty.cpp.

                               { const int NId=GetMxQNId(); 
      NIdQH.DelKey(K); if (NId==K) { UpdateMaxQ(); }  }

Definition at line 101 of file cmty.cpp.

{ return NIdQH[MxQId]; }

Definition at line 100 of file cmty.cpp.

{ return NIdQH.GetKey(MxQId); }

Definition at line 95 of file cmty.cpp.

                      { MxQId=-1; 
      for (int i = -1; NIdQH.FNextKeyId(i); ) { 
        if (MxQId==-1 || NIdQH[MxQId]< NIdQH[i]) { MxQId=i; } } }

Member Data Documentation


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