SNAP Library 2.1, Developer 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
TNEANet::TNode Class Reference

#include <network.h>

Collaboration diagram for TNEANet::TNode:

List of all members.

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 GetInEId (const int &EdgeN) const
int GetOutEId (const int &EdgeN) const
int GetNbrEId (const int &EdgeN) const
bool IsInEId (const int &EId) const
bool IsOutEId (const int &EId) const

Private Attributes

TInt Id
TIntV InEIdV
TIntV OutEIdV

Friends

class TNEANet

Detailed Description

Definition at line 1580 of file network.h.


Constructor & Destructor Documentation

TNEANet::TNode::TNode ( ) [inline]

Definition at line 1585 of file network.h.

: Id(-1), InEIdV(), OutEIdV() { }
TNEANet::TNode::TNode ( const int &  NId) [inline]

Definition at line 1586 of file network.h.

: Id(NId), InEIdV(), OutEIdV() { }
TNEANet::TNode::TNode ( const TNode Node) [inline]

Definition at line 1587 of file network.h.

: Id(Node.Id), InEIdV(Node.InEIdV), OutEIdV(Node.OutEIdV) { }
TNEANet::TNode::TNode ( TSIn SIn) [inline]

Definition at line 1588 of file network.h.

: Id(SIn), InEIdV(SIn), OutEIdV(SIn) { }

Member Function Documentation

int TNEANet::TNode::GetDeg ( ) const [inline]

Definition at line 1591 of file network.h.

{ return GetInDeg() + GetOutDeg(); }
int TNEANet::TNode::GetId ( ) const [inline]

Definition at line 1590 of file network.h.

Referenced by TNEANet::DelNode(), and TNEANet::IsOk().

{ return Id; }

Here is the caller graph for this function:

int TNEANet::TNode::GetInDeg ( ) const [inline]

Definition at line 1592 of file network.h.

Referenced by TNEANet::DelNode(), TNEANet::IsEdge(), TNEANet::TNodeI::IsInNId(), and TNEANet::IsOk().

{ return InEIdV.Len(); }

Here is the caller graph for this function:

int TNEANet::TNode::GetInEId ( const int &  EdgeN) const [inline]

Definition at line 1594 of file network.h.

Referenced by TNEANet::DelNode(), TNEANet::IsEdge(), TNEANet::TNodeI::IsInNId(), and TNEANet::IsOk().

{ return InEIdV[EdgeN]; }

Here is the caller graph for this function:

int TNEANet::TNode::GetNbrEId ( const int &  EdgeN) const [inline]

Definition at line 1596 of file network.h.

{ return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int TNEANet::TNode::GetOutDeg ( ) const [inline]

Definition at line 1593 of file network.h.

Referenced by TNEANet::DelNode(), TNEANet::IsEdge(), TNEANet::IsOk(), and TNEANet::TNodeI::IsOutNId().

{ return OutEIdV.Len(); }

Here is the caller graph for this function:

int TNEANet::TNode::GetOutEId ( const int &  EdgeN) const [inline]

Definition at line 1595 of file network.h.

Referenced by TNEANet::DelNode(), TNEANet::IsEdge(), TNEANet::IsOk(), and TNEANet::TNodeI::IsOutNId().

{ return OutEIdV[EdgeN]; }

Here is the caller graph for this function:

bool TNEANet::TNode::IsInEId ( const int &  EId) const [inline]

Definition at line 1597 of file network.h.

{ return InEIdV.SearchBin(EId) != -1; }
bool TNEANet::TNode::IsOutEId ( const int &  EId) const [inline]

Definition at line 1598 of file network.h.

{ return OutEIdV.SearchBin(EId) != -1; }
void TNEANet::TNode::Save ( TSOut SOut) const [inline]

Definition at line 1589 of file network.h.

{ Id.Save(SOut); InEIdV.Save(SOut); OutEIdV.Save(SOut); }

Friends And Related Function Documentation

friend class TNEANet [friend]

Definition at line 1599 of file network.h.


Member Data Documentation

Definition at line 1582 of file network.h.


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