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 TNodeEDatNet *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. | |
int | GetInDeg () const |
Returns in-degree of the current node. | |
int | GetOutDeg () const |
Returns out-degree of the current node. | |
int | GetInNId (const int &NodeN) const |
Returns ID of NodeN-th in-node (the node pointing to the current node). | |
int | GetOutNId (const int &NodeN) const |
Returns ID of NodeN-th out-node (the node the current node points to). | |
int | GetNbrNId (const int &NodeN) const |
Returns ID of NodeN-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 & | GetOutNDat (const int &NodeN) const |
TNodeData & | GetOutNDat (const int &NodeN) |
const TNodeData & | GetInNDat (const int &NodeN) const |
TNodeData & | GetInNDat (const int &NodeN) |
const TNodeData & | GetNbrNDat (const int &NodeN) const |
TNodeData & | GetNbrNDat (const int &NodeN) |
TEdgeData & | GetOutEDat (const int &EdgeN) |
const TEdgeData & | GetOutEDat (const int &EdgeN) const |
TEdgeData & | GetInEDat (const int &EdgeN) |
const TEdgeData & | GetInEDat (const int &EdgeN) const |
TEdgeData & | GetNbrEDat (const int &EdgeN) |
const TEdgeData & | GetNbrEDat (const int &EdgeN) const |
Private Types | |
typedef THash< TInt, TNode >::TIter | THashIter |
Private Attributes | |
THashIter | NodeHI |
TNodeEDatNet * | Net |
Friends | |
class | TNodeEDatNet< TNodeData, TEdgeData > |
Node iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TNode>::TIter TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::THashIter [private] |
TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | ) | [inline] |
TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | const THashIter & | NodeHIter, |
const TNodeEDatNet * | NetPt | ||
) | [inline] |
Definition at line 488 of file network.h.
: NodeHI(NodeHIter), Net((TNodeEDatNet *) NetPt) { }
TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::TNodeI | ( | const TNodeI & | NodeI | ) | [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetDat | ( | ) | const [inline] |
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetDat | ( | ) | [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetDeg | ( | ) | const [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetId | ( | ) | const [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInDeg | ( | ) | const [inline] |
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInEDat | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInNDat | ( | const int & | NodeN | ) | const [inline] |
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInNDat | ( | const int & | NodeN | ) | [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetInNId | ( | const int & | NodeN | ) | const [inline] |
Returns ID of NodeN-th in-node (the node pointing to the current node).
Range of NodeN: 0 <= NodeN < GetInDeg().
Definition at line 507 of file network.h.
{ return NodeHI.GetDat().GetInNId(NodeN); }
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrEDat | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrNDat | ( | const int & | NodeN | ) | const [inline] |
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrNDat | ( | const int & | NodeN | ) | [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrNId | ( | const int & | NodeN | ) | const [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg | ( | ) | const [inline] |
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutEDat | ( | const int & | EdgeN | ) | [inline] |
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutEDat | ( | const int & | EdgeN | ) | const [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutNDat | ( | const int & | NodeN | ) | const [inline] |
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutNDat | ( | const int & | NodeN | ) | [inline] |
int TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutNId | ( | const int & | NodeN | ) | const [inline] |
Returns ID of NodeN-th out-node (the node the current node points to).
Range of NodeN: 0 <= NodeN < GetOutDeg().
Definition at line 511 of file network.h.
{ return NodeHI.GetDat().GetOutNId(NodeN); }
bool TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::IsInNId | ( | const int & | NId | ) | const [inline] |
bool TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::IsNbrNId | ( | const int & | NId | ) | const [inline] |
bool TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::IsOutNId | ( | const int & | NId | ) | const [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator() | ( | ) | const [inline] |
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator() | ( | ) | [inline] |
TNodeI& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator++ | ( | int | ) | [inline] |
bool TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator< | ( | const TNodeI & | NodeI | ) | const [inline] |
TNodeI& TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator= | ( | const TNodeI & | NodeI | ) | [inline] |
bool TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::operator== | ( | const TNodeI & | NodeI | ) | const [inline] |
friend class TNodeEDatNet< TNodeData, TEdgeData > [friend] |
TNodeEDatNet* TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::Net [private] |
THashIter TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::NodeHI [private] |