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 |
int | GetId () const |
int | GetDeg () const |
int | GetInDeg () const |
int | GetOutDeg () const |
const TNodeData & | GetDat () const |
TNodeData & | GetDat () |
int | GetInNId (const int &EdgeN) const |
int | GetOutNId (const int &EdgeN) const |
int | GetNbrNId (const int &EdgeN) const |
TEdgeData & | GetOutEDat (const int &EdgeN) |
const TEdgeData & | GetOutEDat (const int &EdgeN) const |
bool | IsInNId (const int &NId) const |
bool | IsOutNId (const int &NId) const |
bool | IsNbrNId (const int &NId) const |
bool | operator< (const TNode &Node) const |
Private Attributes | |
TInt | Id |
TNodeData | NodeDat |
TIntV | InNIdV |
TNIdDatPrV | OutNIdV |
Friends | |
class | TNodeEDatNet< TNodeData, TEdgeData > |
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode | ( | ) | [inline] |
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode | ( | const int & | NId | ) | [inline] |
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode | ( | const int & | NId, |
const TNodeData & | NodeData | ||
) | [inline] |
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode | ( | const TNode & | Node | ) | [inline] |
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode | ( | TSIn & | SIn | ) | [inline] |
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat | ( | ) | const [inline] |
Definition at line 466 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.
{ return NodeDat; }
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat | ( | ) | [inline] |
Definition at line 467 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.
{ return NodeDat; }
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg | ( | ) | const [inline] |
Definition at line 463 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg().
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetId | ( | ) | const [inline] |
Definition at line 462 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::IsOk().
{ return Id; }
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg | ( | ) | const [inline] |
Definition at line 464 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV, and TVec< TVal >::Len().
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg(), and TNodeEDatNet< TNodeData, TEdgeData >::IsOk().
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInNId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 468 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId(), and TNodeEDatNet< TNodeData, TEdgeData >::IsOk().
{ return InNIdV[EdgeN]; }
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 470 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInNId(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutNId().
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg | ( | ) | const [inline] |
Definition at line 465 of file network.h.
References TVec< TVal >::Len(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId(), and TNodeEDatNet< TNodeData, TEdgeData >::IsOk().
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat | ( | const int & | EdgeN | ) | [inline] |
Definition at line 471 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::GetEDat().
{ return OutNIdV[EdgeN].Val2; }
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 472 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.
{ return OutNIdV[EdgeN].Val2; }
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutNId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 469 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::DelNode(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId(), and TNodeEDatNet< TNodeData, TEdgeData >::IsOk().
{ return OutNIdV[EdgeN].Val1; }
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId | ( | const int & | NId | ) | const [inline] |
Definition at line 473 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV, and TVec< TVal >::SearchBin().
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId().
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId | ( | const int & | NId | ) | const [inline] |
Definition at line 475 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId().
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId | ( | const int & | NId | ) | const [inline] |
Definition at line 474 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::GetNIdPos(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId().
{ return TNodeEDatNet::GetNIdPos(OutNIdV, NId)!=-1; }
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::operator< | ( | const TNode & | Node | ) | const [inline] |
Definition at line 476 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat.
{ return NodeDat < Node.NodeDat; }
void TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 461 of file network.h.
References TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id, TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV, TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat, TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV, TVec< TVal >::Save(), and TInt::Save().
friend class TNodeEDatNet< TNodeData, TEdgeData > [friend] |
TInt TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id [private] |
Definition at line 451 of file network.h.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetId(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save().
TIntV TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV [private] |
Definition at line 453 of file network.h.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::Defrag(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInNId(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save().
TNodeData TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat [private] |
Definition at line 452 of file network.h.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat(), TNodeEDatNet< TStr, TFltFltH >::GetNDat(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::operator<(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save().
TNIdDatPrV TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV [private] |
Definition at line 454 of file network.h.
Referenced by TNodeEDatNet< TNodeData, TEdgeData >::Defrag(), TNodeEDatNet< TNodeData, TEdgeData >::GetEDat(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutNId(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId(), and TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save().