|
SNAP Library 2.2, Developer Reference
2014-03-11 19:15:55
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 | IsNbrNId (const int &NId) const |
| bool | IsInNId (const int &NId) const |
| bool | IsOutNId (const int &NId) const |
| void | PackOutNIdV () |
| void | PackNIdV () |
Private Attributes | |
| TInt | Id |
| TIntV | NIdV |
Friends | |
| class | TUNGraph |
| class | TUNGraphMtx |
| TUNGraph::TNode::TNode | ( | ) | [inline] |
| TUNGraph::TNode::TNode | ( | const int & | NId | ) | [inline] |
| TUNGraph::TNode::TNode | ( | const TNode & | Node | ) | [inline] |
| TUNGraph::TNode::TNode | ( | TSIn & | SIn | ) | [inline] |
| int TUNGraph::TNode::GetDeg | ( | ) | const [inline] |
Definition at line 48 of file graph.h.
References TVec< TVal, TSizeTy >::Len(), and NIdV.
Referenced by TUNGraph::AddNode(), TUNGraph::DelNode(), TUNGraph::Dump(), GetInDeg(), GetOutDeg(), and TUNGraph::IsOk().


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

| int TUNGraph::TNode::GetInDeg | ( | ) | const [inline] |
| int TUNGraph::TNode::GetInNId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 51 of file graph.h.
References GetNbrNId().
{ return GetNbrNId(NodeN); }

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

| int TUNGraph::TNode::GetOutDeg | ( | ) | const [inline] |
| int TUNGraph::TNode::GetOutNId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 52 of file graph.h.
References GetNbrNId().
{ return GetNbrNId(NodeN); }

| bool TUNGraph::TNode::IsInNId | ( | const int & | NId | ) | const [inline] |
Definition at line 55 of file graph.h.
References IsNbrNId().
{ return IsNbrNId(NId); }

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


| bool TUNGraph::TNode::IsOutNId | ( | const int & | NId | ) | const [inline] |
Definition at line 56 of file graph.h.
References IsNbrNId().
{ return IsNbrNId(NId); }

| void TUNGraph::TNode::PackNIdV | ( | ) | [inline] |
| void TUNGraph::TNode::PackOutNIdV | ( | ) | [inline] |
| void TUNGraph::TNode::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 46 of file graph.h.
References Id, NIdV, TVec< TVal, TSizeTy >::Save(), and TInt::Save().

friend class TUNGraphMtx [friend] |
TInt TUNGraph::TNode::Id [private] |
Definition at line 39 of file graph.h.
Referenced by TUNGraph::AddNode(), GetId(), and Save().
TIntV TUNGraph::TNode::NIdV [private] |
Definition at line 40 of file graph.h.
Referenced by TUNGraph::AddEdge(), TUNGraph::AddNode(), TUNGraph::DelEdge(), TUNGraph::DelNode(), GetDeg(), GetNbrNId(), IsNbrNId(), TUNGraph::IsOk(), PackNIdV(), PackOutNIdV(), TUNGraph::ReserveNIdDeg(), and Save().