SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TNEANetMP::TNode Class Reference

#include <networkmp.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 TNEANetMP
 

Detailed Description

Definition at line 32 of file networkmp.h.

Constructor & Destructor Documentation

TNEANetMP::TNode::TNode ( )
inline

Definition at line 37 of file networkmp.h.

37 : Id(-1), InEIdV(), OutEIdV() { }
TNEANetMP::TNode::TNode ( const int &  NId)
inline

Definition at line 38 of file networkmp.h.

38 : Id(NId), InEIdV(), OutEIdV() { }
TNEANetMP::TNode::TNode ( const TNode Node)
inline

Definition at line 39 of file networkmp.h.

39 : Id(Node.Id), InEIdV(Node.InEIdV), OutEIdV(Node.OutEIdV) { }
TNEANetMP::TNode::TNode ( TSIn SIn)
inline

Definition at line 40 of file networkmp.h.

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

Member Function Documentation

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

Definition at line 43 of file networkmp.h.

43 { return GetInDeg() + GetOutDeg(); }
int GetInDeg() const
Definition: networkmp.h:44
int GetOutDeg() const
Definition: networkmp.h:45
int TNEANetMP::TNode::GetId ( ) const
inline

Definition at line 42 of file networkmp.h.

42 { return Id; }
int TNEANetMP::TNode::GetInDeg ( ) const
inline

Definition at line 44 of file networkmp.h.

44 { return InEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int TNEANetMP::TNode::GetInEId ( const int &  EdgeN) const
inline

Definition at line 46 of file networkmp.h.

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

Definition at line 48 of file networkmp.h.

48 { return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int GetInEId(const int &EdgeN) const
Definition: networkmp.h:46
int GetOutDeg() const
Definition: networkmp.h:45
int GetOutEId(const int &EdgeN) const
Definition: networkmp.h:47
int TNEANetMP::TNode::GetOutDeg ( ) const
inline

Definition at line 45 of file networkmp.h.

45 { return OutEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int TNEANetMP::TNode::GetOutEId ( const int &  EdgeN) const
inline

Definition at line 47 of file networkmp.h.

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

Definition at line 49 of file networkmp.h.

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

Definition at line 50 of file networkmp.h.

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

Definition at line 41 of file networkmp.h.

41 { Id.Save(SOut); InEIdV.Save(SOut); OutEIdV.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1153
void Save(TSOut &SOut) const
Definition: ds.h:954

Friends And Related Function Documentation

friend class TNEANetMP
friend

Definition at line 51 of file networkmp.h.

Member Data Documentation

TInt TNEANetMP::TNode::Id
private

Definition at line 34 of file networkmp.h.

TIntV TNEANetMP::TNode::InEIdV
private

Definition at line 35 of file networkmp.h.

TIntV TNEANetMP::TNode::OutEIdV
private

Definition at line 35 of file networkmp.h.


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