|
SNAP Library 2.4, Developer Reference
2015-05-11 19:40:56
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(), and NIdV.
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(), and NIdV.

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(), and NIdV.

|
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(), 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(), and NIdV.

|
inline |
|
inline |
Definition at line 120 of file cncom.h.
References TVec< TVal, TSizeTy >::GetSecHashCd(), and NIdV.

|
inline |
Definition at line 108 of file cncom.h.
References operator[]().

|
inline |
Definition at line 110 of file cncom.h.
References NIdV, and TVec< TVal, TSizeTy >::SearchBin().

|
inline |
Definition at line 101 of file cncom.h.
References TVec< TVal, TSizeTy >::Len(), and NIdV.
Referenced by GetRndNId().


|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 96 of file cncom.h.
References NIdV, and 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 NIdV, and TVec< TVal, TSizeTy >::Sort().

| TIntV TCnCom::NIdV |
Definition at line 90 of file cncom.h.
Referenced by Add(), Clr(), Dump(), Empty(), GetPrimHashCd(), GetRndNId(), GetSecHashCd(), IsNIdIn(), Len(), operator()(), operator<(), operator=(), operator==(), operator[](), Save(), SaveTxt(), and Sort().