SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Node iterator. Only forward iteration (operator++) is supported. More...
#include <network.h>
Public Member Functions | |
TNodeI () | |
TNodeI (const THashIter &NodeHIter, const TNodeEdgeNet *NetPt) | |
TNodeI (const TNodeI &NodeI) | |
TNodeI & | operator= (const TNodeI &NodeI) |
TNodeI & | operator++ (int) |
Increment iterator. | |
bool | operator< (const TNodeI &NodeI) const |
bool | operator== (const TNodeI &NodeI) const |
int | GetId () const |
Returns ID of the current node. | |
int | GetDeg () const |
Returns degree of the current node, the sum of in-degree and out-degree. | |
int | GetInDeg () const |
Returns in-degree of the current node. | |
int | GetOutDeg () const |
Returns out-degree of the current node. | |
int | GetInNId (const int &EdgeN) const |
Returns ID of EdgeN-th in-node (the node pointing to the current node). | |
int | GetOutNId (const int &EdgeN) const |
Returns ID of EdgeN-th out-node (the node the current node points to). | |
int | GetNbrNId (const int &EdgeN) const |
Returns ID of EdgeN-th neighboring node. | |
bool | IsInNId (const int &NId) const |
Tests whether node with ID NId points to the current node. | |
bool | IsOutNId (const int &NId) const |
Tests whether the current node points to node with ID NId. | |
bool | IsNbrNId (const int &NId) const |
Tests whether node with ID NId is a neighbor of the current node. | |
const TNodeData & | operator() () const |
TNodeData & | operator() () |
const TNodeData & | GetDat () const |
TNodeData & | GetDat () |
const TNodeData & | GetInNDat (const int &EdgeN) const |
TNodeData & | GetInNDat (const int &EdgeN) |
const TNodeData & | GetOutNDat (const int &EdgeN) const |
TNodeData & | GetOutNDat (const int &EdgeN) |
const TNodeData & | GetNbrNDat (const int &EdgeN) const |
TNodeData & | GetNbrNDat (const int &EdgeN) |
int | GetInEId (const int &EdgeN) const |
Returns ID of EdgeN-th in-edge. | |
int | GetOutEId (const int &EdgeN) const |
Returns ID of EdgeN-th out-edge. | |
int | GetNbrEId (const int &EdgeN) const |
Returns ID of EdgeN-th in or out-edge. | |
bool | IsInEId (const int &EId) const |
Tests whether the edge with ID EId is an in-edge of current node. | |
bool | IsOutEId (const int &EId) const |
Tests whether the edge with ID EId is an out-edge of current node. | |
bool | IsNbrEId (const int &EId) const |
Tests whether the edge with ID EId is an in or out-edge of current node. | |
TEdgeDat & | GetInEDat (const int &EdgeN) |
const TEdgeDat & | GetInEDat (const int &EdgeN) const |
TEdgeDat & | GetOutEDat (const int &EdgeN) |
const TEdgeDat & | GetOutEDat (const int &EdgeN) const |
TEdgeDat & | GetNbrEDat (const int &EdgeN) |
const TEdgeDat & | GetNbrEDat (const int &EdgeN) const |
Private Types | |
typedef THash< TInt, TNode >::TIter | THashIter |
Private Attributes | |
THashIter | NodeHI |
TNodeEdgeNet * | Net |
Friends | |
class | TNodeEdgeNet |
Node iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TNode>::TIter TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::THashIter [private] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | const THashIter & | NodeHIter, |
const TNodeEdgeNet * | NetPt | ||
) | [inline] |
Definition at line 1041 of file network.h.
: NodeHI(NodeHIter), Net((TNodeEdgeNet *)NetPt) { }
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | const TNodeI & | NodeI | ) | [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetDat | ( | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetDat | ( | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetDeg | ( | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetId | ( | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInDeg | ( | ) | const [inline] |
TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInEDat | ( | const int & | EdgeN | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInEId | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInNDat | ( | const int & | EdgeN | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInNDat | ( | const int & | EdgeN | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetInNId | ( | const int & | EdgeN | ) | const [inline] |
TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrEDat | ( | const int & | EdgeN | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrEId | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrNDat | ( | const int & | EdgeN | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrNDat | ( | const int & | EdgeN | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetNbrNId | ( | const int & | EdgeN | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg | ( | ) | const [inline] |
TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeDat& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutEDat | ( | const int & | EdgeN | ) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutEId | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutNDat | ( | const int & | EdgeN | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutNDat | ( | const int & | EdgeN | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::GetOutNId | ( | const int & | EdgeN | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsInEId | ( | const int & | EId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsInNId | ( | const int & | NId | ) | const |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsNbrEId | ( | const int & | EId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsNbrNId | ( | const int & | NId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutEId | ( | const int & | EId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutNId | ( | const int & | NId | ) | const |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator() | ( | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator() | ( | ) | [inline] |
TNodeI& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator++ | ( | int | ) | [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator< | ( | const TNodeI & | NodeI | ) | const [inline] |
TNodeI& TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator= | ( | const TNodeI & | NodeI | ) | [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::operator== | ( | const TNodeI & | NodeI | ) | const [inline] |
friend class TNodeEdgeNet [friend] |
TNodeEdgeNet* TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::Net [private] |
THashIter TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::NodeHI [private] |