SNAP Library 6.0, User 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 |
|
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |