| 
    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 
   | 
  
  
  
 
#include <graph.h>

Public Member Functions | |
| TNode () | |
| TNode (const int &NId) | |
| TNode (const TNode &Node) | |
| TNode (TSIn &SIn) | |
| void | Save (TSOut &SOut) 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 | GetNbrNId (const int &NodeN) const | 
| bool | IsInNId (const int &NId) const | 
| bool | IsOutNId (const int &NId) const | 
| bool | IsNbrNId (const int &NId) const | 
| void | PackOutNIdV () | 
| void | PackNIdV () | 
Private Attributes | |
| TInt | Id | 
| TIntV | InNIdV | 
| TIntV | OutNIdV | 
Friends | |
| class | TNGraph | 
| class | TNGraphMtx | 
| TNGraph::TNode::TNode | ( | ) |  [inline] | 
        
| TNGraph::TNode::TNode | ( | const int & | NId | ) |  [inline] | 
        
| TNGraph::TNode::TNode | ( | const TNode & | Node | ) |  [inline] | 
        
| TNGraph::TNode::TNode | ( | TSIn & | SIn | ) |  [inline] | 
        
| int TNGraph::TNode::GetDeg | ( | ) |  const [inline] | 
        
Definition at line 311 of file graph.h.
References GetInDeg(), and GetOutDeg().

| int TNGraph::TNode::GetId | ( | ) |  const [inline] | 
        
Definition at line 310 of file graph.h.
References Id.
Referenced by TNGraph::DelNode(), TNGraph::Dump(), and TNGraph::IsOk().
{ return Id; }

| int TNGraph::TNode::GetInDeg | ( | ) |  const [inline] | 
        
Definition at line 312 of file graph.h.
References InNIdV, and TVec< TVal, TSizeTy >::Len().
Referenced by TNGraph::DelNode(), TNGraph::Dump(), GetDeg(), and TNGraph::IsOk().


| int TNGraph::TNode::GetInNId | ( | const int & | NodeN | ) |  const [inline] | 
        
Definition at line 314 of file graph.h.
References InNIdV.
Referenced by TNGraph::DelNode(), TNGraph::Dump(), GetNbrNId(), and TNGraph::IsOk().
{ return InNIdV[NodeN]; }

| int TNGraph::TNode::GetNbrNId | ( | const int & | NodeN | ) |  const [inline] | 
        
Definition at line 316 of file graph.h.
References GetInNId(), GetOutDeg(), and GetOutNId().

| int TNGraph::TNode::GetOutDeg | ( | ) |  const [inline] | 
        
Definition at line 313 of file graph.h.
References TVec< TVal, TSizeTy >::Len(), and OutNIdV.
Referenced by TNGraph::DelNode(), TNGraph::Dump(), GetDeg(), GetNbrNId(), and TNGraph::IsOk().


| int TNGraph::TNode::GetOutNId | ( | const int & | NodeN | ) |  const [inline] | 
        
Definition at line 315 of file graph.h.
References OutNIdV.
Referenced by TNGraph::DelNode(), TNGraph::Dump(), GetNbrNId(), and TNGraph::IsOk().
{ return OutNIdV[NodeN]; }

| bool TNGraph::TNode::IsInNId | ( | const int & | NId | ) |  const [inline] | 
        
Definition at line 317 of file graph.h.
References InNIdV, and TVec< TVal, TSizeTy >::SearchBin().
Referenced by IsNbrNId().


| bool TNGraph::TNode::IsNbrNId | ( | const int & | NId | ) |  const [inline] | 
        
| bool TNGraph::TNode::IsOutNId | ( | const int & | NId | ) |  const [inline] | 
        
Definition at line 318 of file graph.h.
References OutNIdV, and TVec< TVal, TSizeTy >::SearchBin().
Referenced by TNGraph::IsEdge(), and IsNbrNId().


| void TNGraph::TNode::PackNIdV | ( | ) |  [inline] | 
        
| void TNGraph::TNode::PackOutNIdV | ( | ) |  [inline] | 
        
| void TNGraph::TNode::Save | ( | TSOut & | SOut | ) |  const [inline] | 
        
friend class TNGraphMtx [friend] | 
        
TInt TNGraph::TNode::Id [private] | 
        
Definition at line 302 of file graph.h.
Referenced by TNGraph::AddNode(), GetId(), and Save().
TIntV TNGraph::TNode::InNIdV [private] | 
        
Definition at line 303 of file graph.h.
Referenced by TNGraph::AddEdge(), TNGraph::AddNode(), TNGraph::Defrag(), TNGraph::DelEdge(), TNGraph::DelNode(), GetInDeg(), GetInNId(), IsInNId(), TNGraph::IsOk(), PackNIdV(), TNGraph::ReserveNIdInDeg(), and Save().
TIntV TNGraph::TNode::OutNIdV [private] | 
        
Definition at line 303 of file graph.h.
Referenced by TNGraph::AddEdge(), TNGraph::AddNode(), TNGraph::Defrag(), TNGraph::DelEdge(), TNGraph::DelNode(), GetOutDeg(), GetOutNId(), TNGraph::IsOk(), IsOutNId(), PackOutNIdV(), TNGraph::ReserveNIdOutDeg(), and Save().