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
|
#include <cncom.h>
Public Member Functions | |
TCnCom () | |
TCnCom (const TIntV &NodeIdV) | |
TCnCom (const TCnCom &CC) | |
TCnCom (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TCnCom & | operator= (const TCnCom &CC) |
bool | operator== (const TCnCom &CC) const |
bool | operator< (const TCnCom &CC) const |
int | Len () const |
bool | Empty () const |
void | Clr () |
void | Add (const int &NodeId) |
const TInt & | operator[] (const int &NIdN) const |
const TIntV & | operator() () const |
TIntV & | operator() () |
const TInt & | GetVal (const int &NIdN) const |
void | Sort (const bool &Asc=true) |
bool | IsNIdIn (const int &NId) const |
const TInt & | GetRndNId () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
Static Public Member Functions | |
static void | Dump (const TCnComV &CnComV, const TStr &Desc=TStr()) |
static void | SaveTxt (const TCnComV &CnComV, const TStr &FNm, const TStr &Desc=TStr()) |
template<class PGraph , class TVisitor > | |
static void | GetDfsVisitor (const PGraph &Graph, TVisitor &Visitor) |
Public Attributes | |
TIntV | NIdV |
Connected Component. Connected component is defined by a vector of its node IDs.
|
inline |
Definition at line 104 of file cncom.h.
References TVec< TVal, TSizeTy >::Add().
Referenced by TSccVisitor< PGraph, OnlyCount >::FinishNode(), TSnap::Infomap(), and TSnap::InfomapOnline().
|
inline |
Definition at line 103 of file cncom.h.
References TVec< TVal, TSizeTy >::Clr().
Definition at line 3 of file cncom.cpp.
References TStr::CStr(), TStr::Empty(), TVec< TVal, TSizeTy >::Len(), and NIdV.
|
inline |
Definition at line 102 of file cncom.h.
References TVec< TVal, TSizeTy >::Empty().
|
static |
Depth-First-Search. Depending on the stage of DFS a different member function of Visitor class is called. See source code for details.
Definition at line 124 of file cncom.h.
References THash< TKey, TDat, THashFunc >::AddDat(), edge, TSStack< TVal >::Empty(), THash< TKey, TDat, THashFunc >::GetDat(), THash< TKey, TDat, THashFunc >::IsKey(), TSStack< TVal >::Pop(), TSStack< TVal >::Push(), TSStack< TVal >::Top(), TTriple< TVal1, TVal2, TVal3 >::Val1, TTriple< TVal1, TVal2, TVal3 >::Val2, and TTriple< TVal1, TVal2, TVal3 >::Val3.
Referenced by TSnap::GetArtPoints(), TSnap::GetBiCon(), TSnap::GetSccs(), and TSnap::GetSccSzCnt().
|
inline |
Definition at line 119 of file cncom.h.
References TVec< TVal, TSizeTy >::GetPrimHashCd().
|
inline |
Definition at line 111 of file cncom.h.
References TRnd::GetUniDevInt(), Len(), and TInt::Rnd.
|
inline |
Definition at line 120 of file cncom.h.
References TVec< TVal, TSizeTy >::GetSecHashCd().
|
inline |
Definition at line 108 of file cncom.h.
References operator[]().
|
inline |
Definition at line 110 of file cncom.h.
References TVec< TVal, TSizeTy >::SearchBin().
Referenced by MotifCluster::SpectralCut().
|
inline |
Definition at line 101 of file cncom.h.
References TVec< TVal, TSizeTy >::Len().
Referenced by GetRndNId(), and MotifCluster::SpectralCut().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 96 of file cncom.h.
References TVec< TVal, TSizeTy >::Save().
|
static |
Definition at line 13 of file cncom.cpp.
References TStr::CStr(), TStr::Empty(), TVec< TVal, TSizeTy >::Len(), and NIdV.
|
inline |
Definition at line 109 of file cncom.h.
References TVec< TVal, TSizeTy >::Sort().
TIntV TCnCom::NIdV |
Definition at line 90 of file cncom.h.
Referenced by Dump(), operator()(), operator<(), operator=(), operator==(), SaveTxt(), and MotifCluster::SpectralCut().