SNAP Library 2.4, User Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TNEANet::TNode Class Reference

#include <network.h>

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.

1597 : Id(-1), InEIdV(), OutEIdV() { }
TIntV OutEIdV
Definition: network.h:1595
TIntV InEIdV
Definition: network.h:1595
TNEANet::TNode::TNode ( const int &  NId)
inline

Definition at line 1598 of file network.h.

1598 : Id(NId), InEIdV(), OutEIdV() { }
TIntV OutEIdV
Definition: network.h:1595
TIntV InEIdV
Definition: network.h:1595
TNEANet::TNode::TNode ( const TNode Node)
inline

Definition at line 1599 of file network.h.

1599 : Id(Node.Id), InEIdV(Node.InEIdV), OutEIdV(Node.OutEIdV) { }
TIntV OutEIdV
Definition: network.h:1595
TIntV InEIdV
Definition: network.h:1595
TNEANet::TNode::TNode ( TSIn SIn)
inline

Definition at line 1600 of file network.h.

1600 : Id(SIn), InEIdV(SIn), OutEIdV(SIn) { }
TIntV OutEIdV
Definition: network.h:1595
TIntV InEIdV
Definition: network.h:1595

Member Function Documentation

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

Definition at line 1603 of file network.h.

1603 { return GetInDeg() + GetOutDeg(); }
int GetOutDeg() const
Definition: network.h:1605
int GetInDeg() const
Definition: network.h:1604
int TNEANet::TNode::GetId ( ) const
inline

Definition at line 1602 of file network.h.

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

Definition at line 1604 of file network.h.

1604 { return InEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
TIntV InEIdV
Definition: network.h:1595
int TNEANet::TNode::GetInEId ( const int &  EdgeN) const
inline

Definition at line 1606 of file network.h.

1606 { return InEIdV[EdgeN]; }
TIntV InEIdV
Definition: network.h:1595
int TNEANet::TNode::GetNbrEId ( const int &  EdgeN) const
inline

Definition at line 1608 of file network.h.

1608 { return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int GetOutDeg() const
Definition: network.h:1605
int GetOutEId(const int &EdgeN) const
Definition: network.h:1607
int GetInEId(const int &EdgeN) const
Definition: network.h:1606
int TNEANet::TNode::GetOutDeg ( ) const
inline

Definition at line 1605 of file network.h.

1605 { return OutEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
TIntV OutEIdV
Definition: network.h:1595
int TNEANet::TNode::GetOutEId ( const int &  EdgeN) const
inline

Definition at line 1607 of file network.h.

1607 { return OutEIdV[EdgeN]; }
TIntV OutEIdV
Definition: network.h:1595
bool TNEANet::TNode::IsInEId ( const int &  EId) const
inline

Definition at line 1609 of file network.h.

1609 { return InEIdV.SearchBin(EId) != -1; }
TSizeTy SearchBin(const TVal &Val) const
Returns the position of an element with value Val.
Definition: ds.h:1418
TIntV InEIdV
Definition: network.h:1595
bool TNEANet::TNode::IsOutEId ( const int &  EId) const
inline

Definition at line 1610 of file network.h.

1610 { return OutEIdV.SearchBin(EId) != -1; }
TIntV OutEIdV
Definition: network.h:1595
TSizeTy SearchBin(const TVal &Val) const
Returns the position of an element with value Val.
Definition: ds.h:1418
void TNEANet::TNode::Save ( TSOut SOut) const
inline

Definition at line 1601 of file network.h.

1601 { Id.Save(SOut); InEIdV.Save(SOut); OutEIdV.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1058
TIntV OutEIdV
Definition: network.h:1595
void Save(TSOut &SOut) const
Definition: ds.h:885
TIntV InEIdV
Definition: network.h:1595

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1611 of file network.h.

Member Data Documentation

TInt TNEANet::TNode::Id
private

Definition at line 1594 of file network.h.

TIntV TNEANet::TNode::InEIdV
private

Definition at line 1595 of file network.h.

TIntV TNEANet::TNode::OutEIdV
private

Definition at line 1595 of file network.h.


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