SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <bignet.h>
Public Member Functions | |
void | GetInOutNIdV () |
int | GetInVId () const |
int | GetOutVId () const |
TNodeI () | |
TNodeI (const THashIter &NodeHIter, TPool *PoolPt) | |
TNodeI (const TNodeI &NodeI) | |
TNodeI & | operator= (const TNodeI &NI) |
TNodeI & | operator++ (int) |
bool | operator< (const TNodeI &NI) const |
bool | operator== (const TNodeI &NI) const |
int | GetId () const |
int | GetDeg () const |
int | GetInDeg () const |
int | GetOutDeg () const |
int | GetInNId (const int &NodeN) const |
int | GetOutNId (const int &NodeN) const |
int | GetOutNbrId (const int &NodeN) const |
bool | IsInNId (const int &NId) const |
bool | IsOutNId (const int &NId) const |
bool | IsNbrNId (const int &NId) const |
const TNodeData & | operator() () const |
TNodeData & | operator() () |
const TNodeData & | GetDat () const |
TNodeData & | GetDat () |
void | Dump () const |
Protected Types | |
typedef TNodeH::TIter | THashIter |
Protected Attributes | |
THashIter | NodeHI |
TPool * | Pool |
int | InDeg |
int | OutDeg |
int * | InNIdV |
int * | OutNIdV |
Friends | |
class | TBigNet< TNodeData, IsDir > |
typedef TNodeH::TIter TBigNet< TNodeData, IsDir >::TNodeI::THashIter [protected] |
TBigNet< TNodeData, IsDir >::TNodeI::TNodeI | ( | ) | [inline] |
TBigNet< TNodeData, IsDir >::TNodeI::TNodeI | ( | const THashIter & | NodeHIter, |
TPool * | PoolPt | ||
) | [inline] |
Definition at line 44 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV().
: NodeHI(NodeHIter), Pool(PoolPt) { GetInOutNIdV(); }
TBigNet< TNodeData, IsDir >::TNodeI::TNodeI | ( | const TNodeI & | NodeI | ) | [inline] |
Definition at line 45 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV().
: NodeHI(NodeI.NodeHI), Pool(NodeI.Pool) { GetInOutNIdV(); }
void TBigNet< TNodeData, IsDir >::TNodeI::Dump | ( | ) | const |
const TNodeData& TBigNet< TNodeData, IsDir >::TNodeI::GetDat | ( | ) | const [inline] |
Definition at line 62 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::operator()().
{ return NodeHI->Dat.Dat; }
TNodeData& TBigNet< TNodeData, IsDir >::TNodeI::GetDat | ( | ) | [inline] |
Definition at line 63 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
{ return NodeHI->Dat.Dat; }
int TBigNet< TNodeData, IsDir >::TNodeI::GetDeg | ( | ) | const [inline] |
Definition at line 51 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::InNIdV, and TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV.
int TBigNet< TNodeData, IsDir >::TNodeI::GetId | ( | ) | const [inline] |
Definition at line 50 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
Referenced by TBigNet< TNodeData, IsDir >::TEdgeI::GetSrcNId(), TBigNet< TNodeData, IsDir >::IsOk(), and TBigNet< TNodeData, IsDir >::Rewire().
{ return NodeHI->Key(); }
int TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg | ( | ) | const [inline] |
Definition at line 52 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::InDeg.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetDeg(), TBigNet< TNodeData, IsDir >::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubNGraph(), TBigNet< TNodeData, IsDir >::IsOk(), and TBigNet< TNodeData, IsDir >::Rewire().
{ return InDeg; }
int TBigNet< TNodeData, IsDir >::TNodeI::GetInNId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 54 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::InNIdV.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubNGraph(), and TBigNet< TNodeData, IsDir >::IsOk().
{ return InNIdV[NodeN]; }
void TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV | ( | ) | [inline] |
Definition at line 201 of file bignet.h.
References TVecPool< TVal >::GetValVPt(), TVecPool< TVal >::GetVLen(), TBigNet< TNodeData, IsDir >::TNodeI::InDeg, TBigNet< TNodeData, IsDir >::TNodeI::InNIdV, TBigNet< TNodeData, IsDir >::TNode::InVId, TVecPool< TVal >::IsVId(), TBigNet< TNodeData, IsDir >::TNodeI::NodeHI, TBigNet< TNodeData, IsDir >::TNodeI::OutDeg, TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV, TBigNet< TNodeData, IsDir >::TNode::OutVId, and TBigNet< TNodeData, IsDir >::TNodeI::Pool.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::operator++(), TBigNet< TNodeData, IsDir >::TNodeI::operator=(), and TBigNet< TNodeData, IsDir >::TNodeI::TNodeI().
{ if (NodeHI.IsEnd()) return; const TNode& N = NodeHI->Dat; if (! Pool->IsVId(N.InVId)) { InDeg=0; OutDeg=0; } else { InDeg=Pool->GetVLen(N.InVId); OutDeg=Pool->GetVLen(N.OutVId); InNIdV=(int *)Pool->GetValVPt(N.InVId); OutNIdV=(int *)Pool->GetValVPt(N.OutVId); } }
int TBigNet< TNodeData, IsDir >::TNodeI::GetInVId | ( | ) | const [inline] |
Definition at line 40 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
{ return NodeHI->Dat.InVId; }
int TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg | ( | ) | const [inline] |
Definition at line 53 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::OutDeg.
Referenced by TBigNet< TNodeData, IsDir >::BegEI(), TBigNet< TNodeData, IsDir >::TNodeI::GetDeg(), TBigNet< TNodeData, IsDir >::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubNGraph(), TBigNet< TNodeData, IsDir >::IsOk(), TBigNet< TNodeData, IsDir >::TEdgeI::operator++(), and TBigNet< TNodeData, IsDir >::Rewire().
{ return OutDeg; }
int TBigNet< TNodeData, IsDir >::TNodeI::GetOutNbrId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 56 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::InNIdV, TBigNet< TNodeData, IsDir >::TNodeI::OutDeg, and TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV.
int TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 55 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV.
Referenced by TBigNet< TNodeData, IsDir >::TEdgeI::GetDstNId(), TBigNet< TNodeData, IsDir >::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubNGraph(), TBigNet< TNodeData, IsDir >::IsOk(), and TBigNet< TNodeData, IsDir >::Rewire().
{ return OutNIdV[NodeN]; }
int TBigNet< TNodeData, IsDir >::TNodeI::GetOutVId | ( | ) | const [inline] |
Definition at line 41 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
Referenced by TBigNet< TNodeData, IsDir >::GetSubGraph().
{ return NodeHI->Dat.OutVId; }
bool TBigNet< TNodeData, IsDir >::TNodeI::IsInNId | ( | const int & | NId | ) | const [inline] |
Definition at line 57 of file bignet.h.
References TBigNet< TNodeData, IsDir >::BinSearch(), TBigNet< TNodeData, IsDir >::TNodeI::InDeg, and TBigNet< TNodeData, IsDir >::TNodeI::InNIdV.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::IsNbrNId(), and TBigNet< TNodeData, IsDir >::Rewire().
bool TBigNet< TNodeData, IsDir >::TNodeI::IsNbrNId | ( | const int & | NId | ) | const [inline] |
Definition at line 59 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::IsInNId(), and TBigNet< TNodeData, IsDir >::TNodeI::IsOutNId().
bool TBigNet< TNodeData, IsDir >::TNodeI::IsOutNId | ( | const int & | NId | ) | const [inline] |
Definition at line 58 of file bignet.h.
References TBigNet< TNodeData, IsDir >::BinSearch(), TBigNet< TNodeData, IsDir >::TNodeI::OutDeg, and TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::IsNbrNId().
const TNodeData& TBigNet< TNodeData, IsDir >::TNodeI::operator() | ( | ) | const [inline] |
Definition at line 60 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetDat().
{ return GetDat(); }
TNodeData& TBigNet< TNodeData, IsDir >::TNodeI::operator() | ( | ) | [inline] |
Definition at line 61 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetDat().
{ return GetDat(); }
TNodeI& TBigNet< TNodeData, IsDir >::TNodeI::operator++ | ( | int | ) | [inline] |
Definition at line 47 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), and TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
{ NodeHI++; GetInOutNIdV(); return *this; }
bool TBigNet< TNodeData, IsDir >::TNodeI::operator< | ( | const TNodeI & | NI | ) | const [inline] |
Definition at line 48 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
{ return NodeHI < NI.NodeHI; }
TNodeI& TBigNet< TNodeData, IsDir >::TNodeI::operator= | ( | const TNodeI & | NI | ) | [inline] |
Definition at line 46 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), TBigNet< TNodeData, IsDir >::TNodeI::NodeHI, and TBigNet< TNodeData, IsDir >::TNodeI::Pool.
{ NodeHI=NI.NodeHI; Pool=NI.Pool; GetInOutNIdV(); return *this; }
bool TBigNet< TNodeData, IsDir >::TNodeI::operator== | ( | const TNodeI & | NI | ) | const [inline] |
Definition at line 49 of file bignet.h.
References TBigNet< TNodeData, IsDir >::TNodeI::NodeHI.
{ return NodeHI == NI.NodeHI; }
friend class TBigNet< TNodeData, IsDir > [friend] |
int TBigNet< TNodeData, IsDir >::TNodeI::InDeg [protected] |
Definition at line 37 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetInDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), and TBigNet< TNodeData, IsDir >::TNodeI::IsInNId().
int * TBigNet< TNodeData, IsDir >::TNodeI::InNIdV [protected] |
Definition at line 37 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInNId(), TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNbrId(), TBigNet< TNodeData, IsDir >::TNodeI::IsInNId(), and TBigNet< TNodeData, IsDir >::Rewire().
THashIter TBigNet< TNodeData, IsDir >::TNodeI::NodeHI [protected] |
Definition at line 35 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetDat(), TBigNet< TNodeData, IsDir >::TNodeI::GetId(), TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), TBigNet< TNodeData, IsDir >::TNodeI::GetInVId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutVId(), TBigNet< TNodeData, IsDir >::TNodeI::operator++(), TBigNet< TNodeData, IsDir >::TNodeI::operator<(), TBigNet< TNodeData, IsDir >::TNodeI::operator=(), and TBigNet< TNodeData, IsDir >::TNodeI::operator==().
int TBigNet< TNodeData, IsDir >::TNodeI::OutDeg [protected] |
Definition at line 37 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNbrId(), and TBigNet< TNodeData, IsDir >::TNodeI::IsOutNId().
int * TBigNet< TNodeData, IsDir >::TNodeI::OutNIdV [protected] |
Definition at line 37 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetDeg(), TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNbrId(), TBigNet< TNodeData, IsDir >::TNodeI::GetOutNId(), TBigNet< TNodeData, IsDir >::TNodeI::IsOutNId(), and TBigNet< TNodeData, IsDir >::Rewire().
TPool* TBigNet< TNodeData, IsDir >::TNodeI::Pool [protected] |
Definition at line 36 of file bignet.h.
Referenced by TBigNet< TNodeData, IsDir >::TNodeI::GetInOutNIdV(), and TBigNet< TNodeData, IsDir >::TNodeI::operator=().