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
|
Big Network. More...
#include <bignet.h>
Classes | |
class | TEdgeI |
Edge iterator. More... | |
class | TNode |
Node container class. More... | |
class | TNodeI |
Node iterator. More... | |
Public Types | |
enum | { DelNId = INT_MAX } |
typedef TNodeData | TNodeDat |
typedef TBigNet< TNodeData, IsDir > | TNet |
typedef TPt< TNet > | PNet |
typedef THash< TInt, TNode > | TNodeH |
typedef TPt< TBigNet< TNodeData, IsDir > > | PBigNet |
typedef TVecPool< TInt > | TVPool |
typedef TPt< TVPool > | PVPool |
Public Member Functions | |
TBigNet (const int &Nodes, const TSize &Edges, const bool &Sources=false) | |
TBigNet (TSIn &SIn) | |
virtual | ~TBigNet () |
virtual void | Save (TSOut &SOut) const |
TBigNet & | operator= (const TBigNet &Net) |
bool | OnlySources () const |
bool | HasFlag (const TGraphFlag &Flag) const |
void | DumpFlags () const |
int | GetNodes () const |
int | GetMxNId () const |
Returns an id that is larger than any node id in the network. More... | |
int | AddNode (int NId, const int &InDeg, const int &OutDeg) |
int | AddNode (int NId, const int &InDeg, const int &OutDeg, const TNodeDat &NodeDat) |
int | AddNode (int NId, const TIntV &InNIdV, const TIntV &OutNIdV) |
int | AddNode (int NId, const TIntV &InNIdV, const TIntV &OutNIdV, const TNodeDat &NodeDat) |
int | AddUndirNode (int NId, const int &Deg) |
int | AddUndirNode (int NId, const int &Deg, const TNodeDat &NodeDat) |
int | AddUndirNode (int NId, const TIntV &EdgeNIdV) |
int | AddUndirNode (int NId, const TIntV &EdgeNIdV, const TNodeDat &NodeDat) |
void | SetInNIdV (int NId, const TIntV &InNIdV) |
void | SetOutNIdV (int NId, const TIntV &OutNIdV) |
void | GetInNIdV (int NId, TIntV &OutNIdV) const |
void | GetOutNIdV (int NId, TIntV &OutNIdV) const |
bool | IsNode (const int &NId) const |
TNodeI | BegNI () const |
TNodeI | EndNI () const |
TNodeI | GetNI (const int &NId) const |
TNodeDat & | GetNDat (const int &NId) |
const TNodeDat & | GetNDat (const int &NId) const |
TEdgeI | BegEI () const |
TEdgeI | EndEI () const |
TEdgeI | GetEI (const int &EId) const |
int | IsolateNode (int NId) |
int | DelNode (int NId) |
bool | IsIsoNode (const int &NId) const |
uint | GetDelEdges () |
void | CompactEdgePool () |
::TSize | GetEdges () const |
int | AddEdge (const int &SrcNId, const int &DstNId) |
bool | IsEdge (const int &SrcNId, const int &DstNId, const bool &Dir=true) const |
void | SortEdgeV () |
void | InvertFromSources (uint ExpectNodes=0) |
void | Rewire (TRnd &Rnd=TInt::Rnd) |
PNGraph | GetNGraph (const bool &RenumberNodes=false) const |
PNGraph | GetSubNGraph (const TIntV &NIdV) const |
PBigNet | GetSubGraph (const TIntV &NIdV, const bool &RenumberNodes=false) const |
void | GetSubGraph (const TIntV &NIdV, TBigNet *NewNet, const bool &RenumberNodes=false) const |
int | GetRndNId (TRnd &Rnd=TInt::Rnd) const |
TNodeI | GetRndNI (TRnd &Rnd=TInt::Rnd) const |
void | GetNIdV (TIntV &NIdV) const |
bool | Empty () const |
void | Clr (const bool &DoDel=true) |
void | Reserve (const int &Nodes, const TSize &Edges) |
void | Defrag (const bool &OnlyNodeLinks=false) |
bool | IsOk () const |
void | Dump (const TStr &Desc=TStr()) const |
void | SaveForDisk (const TStr &OutFNm) const |
Static Public Member Functions | |
static PBigNet | New (const int &Nodes, const TSize &Edges, const bool &Sources=false) |
static PBigNet | Load (TSIn &SIn) |
static void | LoadNodeDatH (const TStr &InFNm, TNodeH &NodeH) |
static void | SaveToDisk (const TStr &InFNm, const TStr &OutFNm, const bool &SaveSparseHash) |
Protected Member Functions | |
bool | IsNode (const int &NId, TNode &Node) const |
int * | GetInNIdVPt (const int &NId) const |
int * | GetOutNIdVPt (const int &NId) const |
const TNode & | GetNode (const int &NId) const |
TNode & | GetNode (const int &NId) |
Static Protected Member Functions | |
static void | AddSorted (int *Beg, int *End, const int &Val) |
static const int * | BinSearch (const int *Beg, const int *End, const int &Val) |
static const int * | BinSearch2 (const int *Beg, const int *End, const int &Val) |
Protected Attributes | |
TCRef | CRef |
TInt | MxNId |
TB32Set | Flags |
TVPool | Pool |
TNodeH | NodeH |
Friends | |
class | TPt< TBigNet > |
Big Network.
This class implements similar interface to TNGraph and TUNGraph. The class is meant for storing particularly large static directed or undirected networks. The network representation is optimized for low memory footprint. This means that when a particular node is added to the network its (maximum) in- and out-degree need to be specified, so that the class allocates enough memory for that number of edges being adjacent to a node. The class nicely supports adding as well as deleting nodes, although the memory does not get freed. Deleting edges is supported, while adding edges is supported only up to the point until the node reaches its prespecified in- or out-degree.
anonymous enum |
TBigNet< TNodeData, IsDir >::TBigNet | ( | const int & | Nodes, |
const TSize & | Edges, | ||
const bool & | Sources = false |
||
) |
Definition at line 288 of file bignet.h.
References gfSources, IAssertR, and TB32Set::Incl().
Referenced by TBigNet< TNodeData, IsDir >::Load(), and TBigNet< TNodeData, IsDir >::New().
int TBigNet< TNodeData, IsDir >::AddEdge | ( | const int & | SrcNId, |
const int & | DstNId | ||
) |
Definition at line 537 of file bignet.h.
References Assert, TVecPool< TVal, TSizeTy >::GetValVPt(), TVecPool< TVal, TSizeTy >::GetVLen(), IAssert, TBigNet< TNodeData, IsDir >::TNode::InVId, and TBigNet< TNodeData, IsDir >::TNode::OutVId.
int TBigNet< TNodeData, IsDir >::AddNode | ( | int | NId, |
const int & | InDeg, | ||
const int & | OutDeg | ||
) |
Definition at line 320 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddEmptyV(), CAssert, TStr::Fmt(), IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
int TBigNet< TNodeData, IsDir >::AddNode | ( | int | NId, |
const int & | InDeg, | ||
const int & | OutDeg, | ||
const TNodeDat & | NodeDat | ||
) |
Definition at line 332 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddEmptyV(), CAssert, TBigNet< TNodeData, IsDir >::TNode::Dat, TStr::Fmt(), IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
int TBigNet< TNodeData, IsDir >::AddNode | ( | int | NId, |
const TIntV & | InNIdV, | ||
const TIntV & | OutNIdV | ||
) |
Definition at line 370 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddV(), CAssert, TStr::Fmt(), IAssert, IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TVec< TVal, TSizeTy >::IsSorted(), TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
int TBigNet< TNodeData, IsDir >::AddNode | ( | int | NId, |
const TIntV & | InNIdV, | ||
const TIntV & | OutNIdV, | ||
const TNodeDat & | NodeDat | ||
) |
Definition at line 383 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddV(), CAssert, TBigNet< TNodeData, IsDir >::TNode::Dat, TStr::Fmt(), IAssert, IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TVec< TVal, TSizeTy >::IsSorted(), TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
|
staticprotected |
int TBigNet< TNodeData, IsDir >::AddUndirNode | ( | int | NId, |
const int & | Deg | ||
) |
Definition at line 345 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddEmptyV(), CAssert, TStr::Fmt(), IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
int TBigNet< TNodeData, IsDir >::AddUndirNode | ( | int | NId, |
const int & | Deg, | ||
const TNodeDat & | NodeDat | ||
) |
Definition at line 357 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddEmptyV(), CAssert, TBigNet< TNodeData, IsDir >::TNode::Dat, TStr::Fmt(), IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
int TBigNet< TNodeData, IsDir >::AddUndirNode | ( | int | NId, |
const TIntV & | EdgeNIdV | ||
) |
Definition at line 397 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddV(), CAssert, TStr::Fmt(), IAssert, IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TVec< TVal, TSizeTy >::IsSorted(), TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
int TBigNet< TNodeData, IsDir >::AddUndirNode | ( | int | NId, |
const TIntV & | EdgeNIdV, | ||
const TNodeDat & | NodeDat | ||
) |
Definition at line 410 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddV(), CAssert, TBigNet< TNodeData, IsDir >::TNode::Dat, TStr::Fmt(), IAssert, IAssertR, TBigNet< TNodeData, IsDir >::TNode::InVId, TVec< TVal, TSizeTy >::IsSorted(), TBigNet< TNodeData, IsDir >::TNode::IsUnused(), TMath::Mx(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TInt::Val.
Definition at line 173 of file bignet.h.
References TBigNet< TNodeData, IsDir >::BegNI(), TBigNet< TNodeData, IsDir >::EndNI(), and TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg().
Definition at line 167 of file bignet.h.
References THash< TKey, TDat, THashFunc >::BegI().
Referenced by TBigNet< TNodeData, IsDir >::BegEI().
|
staticprotected |
Definition at line 264 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::IsInNId(), and TBigNet< TNodeData, IsDir >::TNodeI::IsOutNId().
|
staticprotected |
|
inline |
Definition at line 204 of file bignet.h.
References THash< TKey, TDat, THashFunc >::Clr(), and TVecPool< TVal, TSizeTy >::Clr().
void TBigNet< TNodeData, IsDir >::CompactEdgePool | ( | ) |
Definition at line 532 of file bignet.h.
References TVecPool< TVal, TSizeTy >::CompactPool().
|
inline |
int TBigNet< TNodeData, IsDir >::DelNode | ( | int | NId | ) |
Definition at line 501 of file bignet.h.
References THash< TKey, TDat, THashFunc >::DelKey().
void TBigNet< TNodeData, IsDir >::Dump | ( | const TStr & | Desc = TStr() | ) | const |
Definition at line 1037 of file bignet.h.
References TStr::CStr(), and TStr::Empty().
void TBigNet< TNodeData, IsDir >::DumpFlags | ( | ) | const |
Definition at line 310 of file bignet.h.
References TSnap::GetFlagStr(), and gfMx.
|
inline |
Definition at line 203 of file bignet.h.
References TBigNet< TNodeData, IsDir >::GetNodes().
Definition at line 174 of file bignet.h.
References TBigNet< TNodeData, IsDir >::EndNI().
Definition at line 168 of file bignet.h.
References THash< TKey, TDat, THashFunc >::EndI().
Referenced by TBigNet< TNodeData, IsDir >::BegEI(), and TBigNet< TNodeData, IsDir >::EndEI().
Definition at line 518 of file bignet.h.
References TVec< TVal, TSizeTy >::Len().
|
inline |
Definition at line 185 of file bignet.h.
References TVecPool< TVal, TSizeTy >::GetVals().
TEdgeI TBigNet< TNodeData, IsDir >::GetEI | ( | const int & | EId | ) | const |
void TBigNet< TNodeData, IsDir >::GetInNIdV | ( | int | NId, |
TIntV & | OutNIdV | ||
) | const |
Definition at line 440 of file bignet.h.
References EAssertR, TStr::Fmt(), TVecPool< TVal, TSizeTy >::GetV(), and TBigNet< TNodeData, IsDir >::TNode::InVId.
|
inlineprotected |
Definition at line 119 of file bignet.h.
References TBigNet< TNodeData, IsDir >::GetNode(), TVecPool< TVal, TSizeTy >::GetValVPt(), and TBigNet< TNodeData, IsDir >::Pool.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
|
inline |
Returns an id that is larger than any node id in the network.
Definition at line 153 of file bignet.h.
References TBigNet< TNodeData, IsDir >::MxNId.
|
inline |
Definition at line 170 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNode::Dat, and THash< TKey, TDat, THashFunc >::GetDat().
|
inline |
Definition at line 171 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNode::Dat, and THash< TKey, TDat, THashFunc >::GetDat().
PNGraph TBigNet< TNodeData, IsDir >::GetNGraph | ( | const bool & | RenumberNodes = false | ) | const |
Definition at line 766 of file bignet.h.
References TNGraph::AddNode(), IAssert, TNGraph::New(), and TNGraph::Reserve().
|
inline |
Definition at line 169 of file bignet.h.
References THash< TKey, TDat, THashFunc >::GetI().
Referenced by TBigNet< TNodeData, IsDir >::GetRndNI().
void TBigNet< TNodeData, IsDir >::GetNIdV | ( | TIntV & | NIdV | ) | const |
Definition at line 569 of file bignet.h.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::BegI(), THash< TKey, TDat, THashFunc >::EndI(), and TVec< TVal, TSizeTy >::Reserve().
|
inlineprotected |
Definition at line 124 of file bignet.h.
References THash< TKey, TDat, THashFunc >::GetDat(), and TBigNet< TNodeData, IsDir >::NodeH.
Referenced by TBigNet< TNodeData, IsDir >::GetInNIdVPt(), and TBigNet< TNodeData, IsDir >::GetOutNIdVPt().
|
inlineprotected |
Definition at line 125 of file bignet.h.
References THash< TKey, TDat, THashFunc >::GetDat(), and TBigNet< TNodeData, IsDir >::NodeH.
|
inline |
Definition at line 151 of file bignet.h.
References THash< TKey, TDat, THashFunc >::Len().
Referenced by TBigNet< TNodeData, IsDir >::Empty().
void TBigNet< TNodeData, IsDir >::GetOutNIdV | ( | int | NId, |
TIntV & | OutNIdV | ||
) | const |
Definition at line 446 of file bignet.h.
References EAssert, TVecPool< TVal, TSizeTy >::GetV(), and TBigNet< TNodeData, IsDir >::TNode::OutVId.
|
inlineprotected |
Definition at line 120 of file bignet.h.
References TBigNet< TNodeData, IsDir >::GetNode(), TVecPool< TVal, TSizeTy >::GetValVPt(), and TBigNet< TNodeData, IsDir >::Pool.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
|
inline |
Definition at line 200 of file bignet.h.
References TBigNet< TNodeData, IsDir >::GetNI(), and TBigNet< TNodeData, IsDir >::GetRndNId().
|
inline |
Definition at line 199 of file bignet.h.
References THash< TKey, TDat, THashFunc >::GetKey(), and THash< TKey, TDat, THashFunc >::GetRndKeyId().
Referenced by TBigNet< TNodeData, IsDir >::GetRndNI().
TPt< TBigNet< TNodeData, IsDir > > TBigNet< TNodeData, IsDir >::GetSubGraph | ( | const TIntV & | NIdV, |
const bool & | RenumberNodes = false |
||
) | const |
Definition at line 806 of file bignet.h.
References TSparseHash< TKey, TDat, GroupSize >::AddDat(), EAssert, TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInNId(), TBigNet< TNodeData, IsDir >::TNodeI::GetInVId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutVId(), gfDirected, gfSources, TVec< TVal, TSizeTy >::Len(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
void TBigNet< TNodeData, IsDir >::GetSubGraph | ( | const TIntV & | NIdV, |
TBigNet< TNodeData, IsDir > * | NewNet, | ||
const bool & | RenumberNodes = false |
||
) | const |
Definition at line 868 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), THashSet< TKey, THashFunc >::AddKey(), TBigNet< TNodeData, IsDir >::AddNode(), TBigNet< TNodeData, IsDir >::AddUndirNode(), EAssert, TBigNet< TNodeData, IsDir >::Flags, THashSet< TKey, THashFunc >::Gen(), TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInNId(), TBigNet< TNodeData, IsDir >::GetInNIdVPt(), TBigNet< TNodeData, IsDir >::TNodeI::GetInVId(), THashSet< TKey, THashFunc >::GetKeyId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), TBigNet< TNodeData, IsDir >::GetOutNIdVPt(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutVId(), gfSources, TBigNet< TNodeData, IsDir >::IsNode(), TVec< TVal, TSizeTy >::Len(), TBigNet< TNodeData, IsDir >::Reserve(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
PNGraph TBigNet< TNodeData, IsDir >::GetSubNGraph | ( | const TIntV & | NIdV | ) | const |
Definition at line 777 of file bignet.h.
References TNGraph::AddEdge(), TNGraph::AddNode(), TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInNId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), TNGraph::IsNode(), TVec< TVal, TSizeTy >::Len(), TNGraph::New(), TNGraph::ReserveNIdInDeg(), and TNGraph::ReserveNIdOutDeg().
|
inline |
Definition at line 146 of file bignet.h.
References gfSources, HasGraphFlag, and TBigNet< TNodeData, IsDir >::OnlySources().
void TBigNet< TNodeData, IsDir >::InvertFromSources | ( | uint | ExpectNodes = 0 | ) |
Definition at line 604 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), TVecPool< TVal, TSizeTy >::AddEmptyV(), CAssert, TStr::CStr(), TB32Set::Excl(), THash< TKey, TDat, THashFunc >::GetDat(), TInt::GetMegaStr(), TExeTm::GetSecs(), TVecPool< TVal, TSizeTy >::GetV(), TVecPool< TVal, TSizeTy >::GetValVPt(), gfSources, IAssert, TBigNet< TNodeData, IsDir >::TNode::InVId, THash< TKey, TDat, THashFunc >::Len(), TStr::Len(), TInt::Mx, TVecPool< TVal, TSizeTy >::Reserve(), TVecPool< TVal, TSizeTy >::Reserved(), and TVec< TVal, TSizeTy >::Sort().
bool TBigNet< TNodeData, IsDir >::IsEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
const bool & | Dir = true |
||
) | const |
Definition at line 553 of file bignet.h.
References TVecPool< TVal, TSizeTy >::GetValVPt(), TVecPool< TVal, TSizeTy >::GetVLen(), and TBigNet< TNodeData, IsDir >::TNode::OutVId.
bool TBigNet< TNodeData, IsDir >::IsIsoNode | ( | const int & | NId | ) | const |
Definition at line 508 of file bignet.h.
References TVec< TVal, TSizeTy >::Empty().
|
inlineprotected |
Definition at line 118 of file bignet.h.
References THash< TKey, TDat, THashFunc >::IsKeyGetDat(), and TBigNet< TNodeData, IsDir >::NodeH.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
|
inline |
Definition at line 166 of file bignet.h.
References THash< TKey, TDat, THashFunc >::IsKey().
bool TBigNet< TNodeData, IsDir >::IsOk | ( | ) | const |
Definition at line 954 of file bignet.h.
References EAssert, EAssertR, TVec< TVal, TSizeTy >::Empty(), FailR, TStr::Fmt(), TBigNet< TNodeData, IsDir >::TNodeI::GetId(), TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInNId(), TInt::GetMegaStr(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), TExeTm::GetStr(), TVecPool< TVal, TSizeTy >::GetV(), TVecPool< TVal, TSizeTy >::GetValVPt(), TVecPool< TVal, TSizeTy >::GetVecs(), TVecPool< TVal, TSizeTy >::GetVLen(), and TVec< TVal, TSizeTy >::Len().
int TBigNet< TNodeData, IsDir >::IsolateNode | ( | int | NId | ) |
Definition at line 454 of file bignet.h.
References THash< TKey, TDat, THashFunc >::GetDat(), TVecPool< TVal, TSizeTy >::GetValVPt(), TVecPool< TVal, TSizeTy >::GetVLen(), IAssert, TBigNet< TNodeData, IsDir >::TNode::InVId, TVec< TVal, TSizeTy >::Len(), TBigNet< TNodeData, IsDir >::TNode::OutVId, and TVec< TVal, TSizeTy >::PutAll().
|
inlinestatic |
Definition at line 141 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TBigNet().
|
static |
Definition at line 1077 of file bignet.h.
References TSIn::Load(), and THash< TKey, TDat, THashFunc >::Load().
|
inlinestatic |
Definition at line 139 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TBigNet().
|
inline |
Definition at line 145 of file bignet.h.
References gfSources, and TB32Set::In().
Referenced by TBigNet< TNodeData, IsDir >::HasFlag().
|
inline |
Definition at line 142 of file bignet.h.
References TBigNet< TNodeData, IsDir >::Flags, TBigNet< TNodeData, IsDir >::MxNId, TBigNet< TNodeData, IsDir >::NodeH, and TBigNet< TNodeData, IsDir >::Pool.
void TBigNet< TNodeData, IsDir >::Reserve | ( | const int & | Nodes, |
const TSize & | Edges | ||
) |
Definition at line 947 of file bignet.h.
References THash< TKey, TDat, THashFunc >::Gen(), Mega, and TMath::Mx().
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
void TBigNet< TNodeData, IsDir >::Rewire | ( | TRnd & | Rnd = TInt::Rnd | ) |
Definition at line 668 of file bignet.h.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::Defrag(), THash< TKey, TDat, THashFunc >::DelKey(), THash< TKey, TDat, THashFunc >::GetDat(), TBigNet< TNodeData, IsDir >::TNodeI::GetId(), TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), THash< TKey, TDat, THashFunc >::GetKey(), THash< TKey, TDat, THashFunc >::GetKeyV(), THash< TKey, TDat, THashFunc >::GetMxKeyIds(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), THash< TKey, TDat, THashFunc >::GetRndKeyId(), TExeTm::GetStr(), TVecPool< TVal, TSizeTy >::GetValVPt(), TVecPool< TVal, TSizeTy >::GetVLen(), IAssert, IAssertR, TBigNet< TNodeData, IsDir >::TNodeI::InNIdV, TBigNet< TNodeData, IsDir >::TNodeI::IsInNId(), THash< TKey, TDat, THashFunc >::IsKey(), THash< TKey, TDat, THashFunc >::Len(), Mega, TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV, and TVecPool< TVal, TSizeTy >::ShuffleAll().
|
virtual |
Definition at line 301 of file bignet.h.
References THash< TKey, TDat, THashFunc >::Save(), TB32Set::Save(), TBool::Save(), TInt::Save(), and TVecPool< TVal, TSizeTy >::Save().
void TBigNet< TNodeData, IsDir >::SaveForDisk | ( | const TStr & | OutFNm | ) | const |
Definition at line 1055 of file bignet.h.
References TSOut::Save().
|
static |
Definition at line 1097 of file bignet.h.
References THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::BegI(), THash< TKey, TDat, THashFunc >::EndI(), FailR, THash< TKey, TDat, THashFunc >::Len(), TB32Set::Save(), TInt::Save(), and TVecPool< TVal, TSizeTy >::Save().
void TBigNet< TNodeData, IsDir >::SetInNIdV | ( | int | NId, |
const TIntV & | InNIdV | ||
) |
Definition at line 424 of file bignet.h.
References TVec< TVal, TSizeTy >::BegI(), EAssert, TVecPool< TVal, TSizeTy >::GetV(), TBigNet< TNodeData, IsDir >::TNode::InVId, and TVec< TVal, TSizeTy >::Len().
void TBigNet< TNodeData, IsDir >::SetOutNIdV | ( | int | NId, |
const TIntV & | OutNIdV | ||
) |
Definition at line 432 of file bignet.h.
References TVec< TVal, TSizeTy >::BegI(), EAssert, TVecPool< TVal, TSizeTy >::GetV(), TVec< TVal, TSizeTy >::Len(), and TBigNet< TNodeData, IsDir >::TNode::OutVId.
void TBigNet< TNodeData, IsDir >::SortEdgeV | ( | ) |
Definition at line 576 of file bignet.h.
References TExeTm::GetStr(), IAssert, TVec< TVal, TSizeTy >::IsSorted(), Mega, and TVec< TVal, TSizeTy >::Sort().
Definition at line 131 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph(), and TBigNet< TNodeData, IsDir >::operator=().
Definition at line 130 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::GetMxNId(), and TBigNet< TNodeData, IsDir >::operator=().
Definition at line 133 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::GetNode(), TBigNet< TNodeData, IsDir >::IsNode(), and TBigNet< TNodeData, IsDir >::operator=().
Definition at line 132 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::GetInNIdVPt(), TBigNet< TNodeData, IsDir >::GetOutNIdVPt(), and TBigNet< TNodeData, IsDir >::operator=().