SNAP Library 2.1, User Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNodeEDatNet< TNodeData, TEdgeData >::TNode Class Reference

#include <network.h>

List of all members.

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 >

Detailed Description

template<class TNodeData, class TEdgeData>
class TNodeEDatNet< TNodeData, TEdgeData >::TNode

Definition at line 449 of file network.h.


Constructor & Destructor Documentation

template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( ) [inline]

Definition at line 456 of file network.h.

: Id(-1), NodeDat(), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const int &  NId) [inline]

Definition at line 457 of file network.h.

: Id(NId), NodeDat(), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const int &  NId,
const TNodeData &  NodeData 
) [inline]

Definition at line 458 of file network.h.

: Id(NId), NodeDat(NodeData), InNIdV(), OutNIdV() { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( const TNode Node) [inline]

Definition at line 459 of file network.h.

: Id(Node.Id), NodeDat(Node.NodeDat), InNIdV(Node.InNIdV), OutNIdV(Node.OutNIdV) { }
template<class TNodeData, class TEdgeData>
TNodeEDatNet< TNodeData, TEdgeData >::TNode::TNode ( TSIn SIn) [inline]

Definition at line 460 of file network.h.

: Id(SIn), NodeDat(SIn), InNIdV(SIn), OutNIdV(SIn) { }

Member Function Documentation

template<class TNodeData, class TEdgeData>
const TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat ( ) const [inline]

Definition at line 466 of file network.h.

{ return NodeDat; }
template<class TNodeData, class TEdgeData>
TNodeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDat ( ) [inline]

Definition at line 467 of file network.h.

{ return NodeDat; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetDeg ( ) const [inline]

Definition at line 463 of file network.h.

{ return GetInDeg() + GetOutDeg(); }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetId ( ) const [inline]

Definition at line 462 of file network.h.

{ return Id; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInDeg ( ) const [inline]

Definition at line 464 of file network.h.

{ return InNIdV.Len(); }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetInNId ( const int &  EdgeN) const [inline]

Definition at line 468 of file network.h.

{ return InNIdV[EdgeN]; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetNbrNId ( const int &  EdgeN) const [inline]

Definition at line 470 of file network.h.

{ return EdgeN<GetOutDeg() ? GetOutNId(EdgeN):GetInNId(EdgeN-GetOutDeg()); }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutDeg ( ) const [inline]

Definition at line 465 of file network.h.

{ return OutNIdV.Len(); }
template<class TNodeData, class TEdgeData>
TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat ( const int &  EdgeN) [inline]

Definition at line 471 of file network.h.

{ return OutNIdV[EdgeN].Val2; }
template<class TNodeData, class TEdgeData>
const TEdgeData& TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutEDat ( const int &  EdgeN) const [inline]

Definition at line 472 of file network.h.

{ return OutNIdV[EdgeN].Val2; }
template<class TNodeData, class TEdgeData>
int TNodeEDatNet< TNodeData, TEdgeData >::TNode::GetOutNId ( const int &  EdgeN) const [inline]

Definition at line 469 of file network.h.

{ return OutNIdV[EdgeN].Val1; }
template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsInNId ( const int &  NId) const [inline]

Definition at line 473 of file network.h.

{ return InNIdV.SearchBin(NId)!=-1; }
template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsNbrNId ( const int &  NId) const [inline]

Definition at line 475 of file network.h.

{ return IsOutNId(NId) || IsInNId(NId); }
template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::IsOutNId ( const int &  NId) const [inline]

Definition at line 474 of file network.h.

{ return TNodeEDatNet::GetNIdPos(OutNIdV, NId)!=-1; }
template<class TNodeData, class TEdgeData>
bool TNodeEDatNet< TNodeData, TEdgeData >::TNode::operator< ( const TNode Node) const [inline]

Definition at line 476 of file network.h.

{ return NodeDat < Node.NodeDat; }
template<class TNodeData, class TEdgeData>
void TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save ( TSOut SOut) const [inline]

Definition at line 461 of file network.h.

{ Id.Save(SOut);  NodeDat.Save(SOut);  InNIdV.Save(SOut);  OutNIdV.Save(SOut); }

Friends And Related Function Documentation

template<class TNodeData, class TEdgeData>
friend class TNodeEDatNet< TNodeData, TEdgeData > [friend]

Definition at line 477 of file network.h.


Member Data Documentation

template<class TNodeData, class TEdgeData>
TInt TNodeEDatNet< TNodeData, TEdgeData >::TNode::Id [private]

Definition at line 451 of file network.h.

template<class TNodeData, class TEdgeData>
TIntV TNodeEDatNet< TNodeData, TEdgeData >::TNode::InNIdV [private]

Definition at line 453 of file network.h.

template<class TNodeData, class TEdgeData>
TNodeData TNodeEDatNet< TNodeData, TEdgeData >::TNode::NodeDat [private]

Definition at line 452 of file network.h.

template<class TNodeData, class TEdgeData>
TNIdDatPrV TNodeEDatNet< TNodeData, TEdgeData >::TNode::OutNIdV [private]

Definition at line 454 of file network.h.


The documentation for this class was generated from the following file: