SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <network.h>
Public Member Functions | |
TNode () | |
TNode (const int &NId) | |
TNode (const int &NId, const TNodeData &NodeData) | |
TNode (const TNode &Node) | |
TNode (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
bool | operator< (const TNode &Node) const |
int | GetId () const |
int | GetDeg () const |
int | GetInDeg () const |
int | GetOutDeg () const |
const TNodeData & | GetDat () const |
TNodeData & | GetDat () |
int | GetInEId (const int &NodeN) const |
int | GetOutEId (const int &NodeN) const |
int | GetNbrEId (const int &EdgeN) const |
bool | IsInEId (const int &EId) const |
bool | IsOutEId (const int &EId) const |
bool | IsNbrEId (const int &EId) const |
Private Attributes | |
TInt | Id |
TIntV | InEIdV |
TIntV | OutEIdV |
TNodeData | NodeDat |
Friends | |
class | TNodeEdgeNet< TNodeData, TEdgeData > |
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode | ( | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode | ( | const int & | NId | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode | ( | const int & | NId, |
const TNodeData & | NodeData | ||
) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode | ( | const TNode & | Node | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNode::TNode | ( | TSIn & | SIn | ) | [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDat | ( | ) | const [inline] |
Definition at line 1002 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::NodeDat.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutNId().
{ return NodeDat; }
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDat | ( | ) | [inline] |
Definition at line 1003 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::NodeDat.
{ return NodeDat; }
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDeg | ( | ) | const [inline] |
Definition at line 999 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInDeg(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutDeg().
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetId | ( | ) | const [inline] |
Definition at line 998 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Id.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::IsOk().
{ return Id; }
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInDeg | ( | ) | const [inline] |
Definition at line 1000 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV, and TVec< TVal >::Len().
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::DelNode(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsInNId(), and TNodeEdgeNet< TNodeData, TEdgeData >::IsOk().
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInEId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 1004 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::DelNode(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetNbrEId(), TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsInNId(), and TNodeEdgeNet< TNodeData, TEdgeData >::IsOk().
{ return InEIdV[NodeN]; }
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetNbrEId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 1006 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInEId(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutEId().
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutDeg | ( | ) | const [inline] |
Definition at line 1001 of file network.h.
References TVec< TVal >::Len(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::DelNode(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetNbrEId(), TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutNId().
int TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutEId | ( | const int & | NodeN | ) | const [inline] |
Definition at line 1005 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::DelNode(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetNbrEId(), TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNodeI::IsOutNId().
{ return OutEIdV[NodeN]; }
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId | ( | const int & | EId | ) | const [inline] |
Definition at line 1007 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV, and TVec< TVal >::SearchBin().
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId().
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId | ( | const int & | EId | ) | const [inline] |
Definition at line 1009 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId().
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId | ( | const int & | EId | ) | const [inline] |
Definition at line 1008 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV, and TVec< TVal >::SearchBin().
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsNbrEId().
bool TNodeEdgeNet< TNodeData, TEdgeData >::TNode::operator< | ( | const TNode & | Node | ) | const [inline] |
Definition at line 997 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::NodeDat.
{ return NodeDat < Node.NodeDat; }
void TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 996 of file network.h.
References TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Id, TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV, TNodeEdgeNet< TNodeData, TEdgeData >::TNode::NodeDat, TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV, TVec< TVal >::Save(), and TInt::Save().
friend class TNodeEdgeNet< TNodeData, TEdgeData > [friend] |
TInt TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Id [private] |
Definition at line 987 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save().
TIntV TNodeEdgeNet< TNodeData, TEdgeData >::TNode::InEIdV [private] |
Definition at line 988 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::Defrag(), TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetInEId(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsInEId(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save().
TNodeData TNodeEdgeNet< TNodeData, TEdgeData >::TNode::NodeDat [private] |
Definition at line 989 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetDat(), TNodeEdgeNet< TSecTm, TSecTm >::GetNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::operator<(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save(), and TNodeEdgeNet< TNodeData, TEdgeData >::SetNDat().
TIntV TNodeEdgeNet< TNodeData, TEdgeData >::TNode::OutEIdV [private] |
Definition at line 988 of file network.h.
Referenced by TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::Defrag(), TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::GetOutEId(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::IsOutEId(), and TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save().