| 
    SNAP Library 2.0, Developer Reference
    2013-05-13 16:33:57
    
   SNAP, a general purpose, high performance system for analysis and manipulation of large networks 
   | 
  
  
  
 
Node iterator. Only forward iteration (operator++) is supported. More...
#include <graph.h>

Public Member Functions | |
| TNodeI () | |
| TNodeI (const THashIter &NodeHIter) | |
| 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 &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.   | |
Private Types | |
| typedef THash< TInt, TNode >::TIter | THashIter | 
Private Attributes | |
| THashIter | NodeHI | 
Friends | |
| class | TNGraph | 
Node iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TNode>::TIter TNGraph::TNodeI::THashIter [private] | 
        
| TNGraph::TNodeI::TNodeI | ( | ) |  [inline] | 
        
| TNGraph::TNodeI::TNodeI | ( | const THashIter & | NodeHIter | ) |  [inline] | 
        
| TNGraph::TNodeI::TNodeI | ( | const TNodeI & | NodeI | ) |  [inline] | 
        
| int TNGraph::TNodeI::GetDeg | ( | ) |  const [inline] | 
        
Returns degree of the current node, the sum of in-degree and out-degree.
Definition at line 342 of file graph.h.
References NodeHI.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs(), TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive(), and TKroneckerLL::SetBestDegPerm().
{ return NodeHI.GetDat().GetDeg(); }

| int TNGraph::TNodeI::GetId | ( | ) |  const [inline] | 
        
Returns ID of the current node.
Definition at line 340 of file graph.h.
References NodeHI.
Referenced by TNGraph::AddNode(), TGHash< TDat >::GetNodeMap(), TNGraph::TEdgeI::GetSrcNId(), and TSubGraphsEnum::RecurBfs().
{ return NodeHI.GetDat().GetId(); }

| int TNGraph::TNodeI::GetInDeg | ( | ) |  const [inline] | 
        
Returns in-degree of the current node.
Definition at line 344 of file graph.h.
References NodeHI.
Referenced by TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TCascade::GetProb(), TKroneckerLL::NodeDLLDelta(), TKroneckerLL::NodeLLDelta(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), and TMAGFitBern::UpdateApxPhiMI().
{ return NodeHI.GetDat().GetInDeg(); }

| int TNGraph::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 350 of file graph.h.
References NodeHI.
Referenced by TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TCascade::GetProb(), TKroneckerLL::NodeDLLDelta(), TKroneckerLL::NodeLLDelta(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), and TMAGFitBern::UpdateApxPhiMI().
{ return NodeHI.GetDat().GetInNId(NodeN); }

| int TNGraph::TNodeI::GetNbrNId | ( | const int & | NodeN | ) |  const [inline] | 
        
Returns ID of NodeN-th neighboring node.
Range of NodeN: 0 <= NodeN < GetNbrDeg().
Definition at line 358 of file graph.h.
References NodeHI.
Referenced by TGraphEnumUtils::GetIndGraph(), TSubGraphEnum< TGraphCounter >::GetSubGraphs(), and TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
{ return NodeHI.GetDat().GetNbrNId(NodeN); }

| int TNGraph::TNodeI::GetOutDeg | ( | ) |  const [inline] | 
        
Returns out-degree of the current node.
Definition at line 346 of file graph.h.
References NodeHI.
Referenced by TNGraph::BegEI(), TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TKroneckerLL::CalcApxGraphDLL(), TKroneckerLL::CalcApxGraphLL(), TKroneckerLL::CalcGraphLL(), TNetInfBs::GenCascade(), TSnap::GenCopyModel(), TGraphEnumUtils::GetIndGraph(), TKroneckerLL::NodeDLLDelta(), TKroneckerLL::NodeLLDelta(), TNGraph::TEdgeI::operator++(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), and TMAGFitBern::UpdateApxPhiMI().
{ return NodeHI.GetDat().GetOutDeg(); }

| int TNGraph::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 354 of file graph.h.
References NodeHI.
Referenced by TForestFire::BurnExpFire(), TForestFire::BurnGeoFire(), TKroneckerLL::CalcApxGraphDLL(), TKroneckerLL::CalcApxGraphLL(), TKroneckerLL::CalcGraphLL(), TNetInfBs::GenCascade(), TSnap::GenCopyModel(), TNGraph::TEdgeI::GetDstNId(), TKroneckerLL::NodeDLLDelta(), TKroneckerLL::NodeLLDelta(), TSubGraphsEnum::RecurBfs(), TSubGraphsEnum::RecurBfs1(), and TMAGFitBern::UpdateApxPhiMI().
{ return NodeHI.GetDat().GetOutNId(NodeN); }

| bool TNGraph::TNodeI::IsInNId | ( | const int & | NId | ) |  const [inline] | 
        
Tests whether node with ID NId points to the current node.
Definition at line 360 of file graph.h.
References NodeHI.
Referenced by IsNbrNId().
{ return NodeHI.GetDat().IsInNId(NId); }

| bool TNGraph::TNodeI::IsNbrNId | ( | const int & | NId | ) |  const [inline] | 
        
| bool TNGraph::TNodeI::IsOutNId | ( | const int & | NId | ) |  const [inline] | 
        
Tests whether the current node points to node with ID NId.
Definition at line 362 of file graph.h.
References NodeHI.
Referenced by IsNbrNId().
{ return NodeHI.GetDat().IsOutNId(NId); }

| TNodeI& TNGraph::TNodeI::operator++ | ( | int | ) |  [inline] | 
        
| bool TNGraph::TNodeI::operator< | ( | const TNodeI & | NodeI | ) |  const [inline] | 
        
| bool TNGraph::TNodeI::operator== | ( | const TNodeI & | NodeI | ) |  const [inline] | 
        
THashIter TNGraph::TNodeI::NodeHI [private] | 
        
Definition at line 329 of file graph.h.
Referenced by GetDeg(), TNGraph::GetEI(), GetId(), GetInDeg(), GetInNId(), GetNbrNId(), GetOutDeg(), GetOutNId(), IsInNId(), IsOutNId(), operator++(), operator<(), operator=(), and operator==().