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
TNEANet::TNode Class Reference

#include <network.h>

Collaboration diagram for TNEANet::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
 
void LoadShM (TShMIn &MStream)
 

Private Attributes

TInt Id
 
TIntV InEIdV
 
TIntV OutEIdV
 

Friends

class TNEANet
 

Detailed Description

Definition at line 1746 of file network.h.

Constructor & Destructor Documentation

TNEANet::TNode::TNode ( )
inline

Definition at line 1751 of file network.h.

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

Definition at line 1752 of file network.h.

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

Definition at line 1753 of file network.h.

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

Definition at line 1754 of file network.h.

1754 : Id(SIn), InEIdV(SIn), OutEIdV(SIn) { }
TIntV OutEIdV
Definition: network.h:1749
TIntV InEIdV
Definition: network.h:1749

Member Function Documentation

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

Definition at line 1757 of file network.h.

1757 { return GetInDeg() + GetOutDeg(); }
int GetOutDeg() const
Definition: network.h:1759
int GetInDeg() const
Definition: network.h:1758
int TNEANet::TNode::GetId ( ) const
inline

Definition at line 1756 of file network.h.

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

1756 { return Id; }

Here is the caller graph for this function:

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

Definition at line 1758 of file network.h.

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

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

Here is the caller graph for this function:

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

Definition at line 1760 of file network.h.

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

1760 { return InEIdV[EdgeN]; }
TIntV InEIdV
Definition: network.h:1749

Here is the caller graph for this function:

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

Definition at line 1762 of file network.h.

1762 { return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int GetOutDeg() const
Definition: network.h:1759
int GetOutEId(const int &EdgeN) const
Definition: network.h:1761
int GetInEId(const int &EdgeN) const
Definition: network.h:1760
int TNEANet::TNode::GetOutDeg ( ) const
inline

Definition at line 1759 of file network.h.

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

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

Here is the caller graph for this function:

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

Definition at line 1761 of file network.h.

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

1761 { return OutEIdV[EdgeN]; }
TIntV OutEIdV
Definition: network.h:1749

Here is the caller graph for this function:

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

Definition at line 1763 of file network.h.

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

Definition at line 1764 of file network.h.

1764 { return OutEIdV.SearchBin(EId) != -1; }
TIntV OutEIdV
Definition: network.h:1749
TSizeTy SearchBin(const TVal &Val) const
Returns the position of an element with value Val.
Definition: ds.h:1519
void TNEANet::TNode::LoadShM ( TShMIn MStream)
inline

Definition at line 1765 of file network.h.

Referenced by TNEANet::LoadTNodeFunctor::operator()().

1765  {
1766  Id = TInt(MStream);
1767  InEIdV.LoadShM(MStream);
1768  OutEIdV.LoadShM(MStream);
1769  }
TIntV OutEIdV
Definition: network.h:1749
Definition: dt.h:1134
void LoadShM(TShMIn &ShMIn)
Constructs the vector from a shared memory input.
Definition: ds.h:932
TIntV InEIdV
Definition: network.h:1749

Here is the caller graph for this function:

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

Definition at line 1755 of file network.h.

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

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1770 of file network.h.

Member Data Documentation

TInt TNEANet::TNode::Id
private

Definition at line 1748 of file network.h.

TIntV TNEANet::TNode::InEIdV
private

Definition at line 1749 of file network.h.

Referenced by TNEANet::AddEdge(), TNEANet::Defrag(), TNEANet::DelEdge(), and TNEANet::IsOk().

TIntV TNEANet::TNode::OutEIdV
private

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