SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
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
TNEANetMP::TNode Class Reference

#include <networkmp.h>

Collaboration diagram for TNEANetMP::TNode:

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.

References GetInDeg(), and GetOutDeg().

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

Here is the call graph for this function:

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

Definition at line 42 of file networkmp.h.

References Id.

Referenced by TNEANetMP::IsOk().

42 { return Id; }

Here is the caller graph for this function:

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

Definition at line 44 of file networkmp.h.

References InEIdV, and TVec< TVal, TSizeTy >::Len().

Referenced by GetDeg(), TNEANetMP::IsEdge(), TNEANetMP::TNodeI::IsInNId(), and TNEANetMP::IsOk().

44 { return InEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575

Here is the call graph for this function:

Here is the caller graph for this function:

int TNEANetMP::TNode::GetInEId ( const int &  EdgeN) const
inline

Definition at line 46 of file networkmp.h.

References InEIdV.

Referenced by GetNbrEId(), TNEANetMP::IsEdge(), TNEANetMP::TNodeI::IsInNId(), and TNEANetMP::IsOk().

46 { return InEIdV[EdgeN]; }

Here is the caller graph for this function:

int TNEANetMP::TNode::GetNbrEId ( const int &  EdgeN) const
inline

Definition at line 48 of file networkmp.h.

References GetInEId(), GetOutDeg(), and GetOutEId().

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

Here is the call graph for this function:

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

Definition at line 45 of file networkmp.h.

References TVec< TVal, TSizeTy >::Len(), and OutEIdV.

Referenced by GetDeg(), GetNbrEId(), TNEANetMP::IsEdge(), TNEANetMP::IsOk(), and TNEANetMP::TNodeI::IsOutNId().

45 { return OutEIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575

Here is the call graph for this function:

Here is the caller graph for this function:

int TNEANetMP::TNode::GetOutEId ( const int &  EdgeN) const
inline

Definition at line 47 of file networkmp.h.

References OutEIdV.

Referenced by GetNbrEId(), TNEANetMP::IsEdge(), TNEANetMP::IsOk(), and TNEANetMP::TNodeI::IsOutNId().

47 { return OutEIdV[EdgeN]; }

Here is the caller graph for this function:

bool TNEANetMP::TNode::IsInEId ( const int &  EId) const
inline

Definition at line 49 of file networkmp.h.

References InEIdV, and TVec< TVal, TSizeTy >::SearchBin().

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

Here is the call graph for this function:

bool TNEANetMP::TNode::IsOutEId ( const int &  EId) const
inline

Definition at line 50 of file networkmp.h.

References OutEIdV, and TVec< TVal, TSizeTy >::SearchBin().

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

Here is the call graph for this function:

void TNEANetMP::TNode::Save ( TSOut SOut) const
inline

Definition at line 41 of file networkmp.h.

References Id, InEIdV, OutEIdV, TVec< TVal, TSizeTy >::Save(), and TInt::Save().

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

Here is the call graph for this function:

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.

Referenced by GetId(), and Save().

TIntV TNEANetMP::TNode::InEIdV
private
TIntV TNEANetMP::TNode::OutEIdV
private

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