SNAP Library 2.2, User Reference  2014-03-11 19:15:55
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>

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 1592 of file network.h.


Constructor & Destructor Documentation

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

Definition at line 1597 of file network.h.

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

Definition at line 1598 of file network.h.

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

Definition at line 1599 of file network.h.

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

Definition at line 1600 of file network.h.

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

Member Function Documentation

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

Definition at line 1603 of file network.h.

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

Definition at line 1602 of file network.h.

{ return Id; }
int TNEANet::TNode::GetInDeg ( ) const [inline]

Definition at line 1604 of file network.h.

{ return InEIdV.Len(); }
int TNEANet::TNode::GetInEId ( const int &  EdgeN) const [inline]

Definition at line 1606 of file network.h.

{ return InEIdV[EdgeN]; }
int TNEANet::TNode::GetNbrEId ( const int &  EdgeN) const [inline]

Definition at line 1608 of file network.h.

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

Definition at line 1605 of file network.h.

{ return OutEIdV.Len(); }
int TNEANet::TNode::GetOutEId ( const int &  EdgeN) const [inline]

Definition at line 1607 of file network.h.

{ return OutEIdV[EdgeN]; }
bool TNEANet::TNode::IsInEId ( const int &  EId) const [inline]

Definition at line 1609 of file network.h.

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

Definition at line 1610 of file network.h.

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

Definition at line 1601 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 1611 of file network.h.


Member Data Documentation

Definition at line 1594 of file network.h.

Definition at line 1595 of file network.h.

Definition at line 1595 of file network.h.


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