SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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 1596 of file network.h.

Constructor & Destructor Documentation

TNEANet::TNode::TNode ( )
inline

Definition at line 1601 of file network.h.

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

Definition at line 1602 of file network.h.

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

Definition at line 1603 of file network.h.

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

Definition at line 1604 of file network.h.

1604 : Id(SIn), InEIdV(SIn), OutEIdV(SIn) { }
TIntV OutEIdV
Definition: network.h:1599
TIntV InEIdV
Definition: network.h:1599

Member Function Documentation

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

Definition at line 1607 of file network.h.

1607 { return GetInDeg() + GetOutDeg(); }
int GetOutDeg() const
Definition: network.h:1609
int GetInDeg() const
Definition: network.h:1608
int TNEANet::TNode::GetId ( ) const
inline

Definition at line 1606 of file network.h.

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

Definition at line 1608 of file network.h.

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

Definition at line 1610 of file network.h.

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

Definition at line 1612 of file network.h.

1612 { return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int GetOutDeg() const
Definition: network.h:1609
int GetOutEId(const int &EdgeN) const
Definition: network.h:1611
int GetInEId(const int &EdgeN) const
Definition: network.h:1610
int TNEANet::TNode::GetOutDeg ( ) const
inline

Definition at line 1609 of file network.h.

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

Definition at line 1611 of file network.h.

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

Definition at line 1613 of file network.h.

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

Definition at line 1614 of file network.h.

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

Definition at line 1605 of file network.h.

1605 { Id.Save(SOut); InEIdV.Save(SOut); OutEIdV.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1060
TIntV OutEIdV
Definition: network.h:1599
void Save(TSOut &SOut) const
Definition: ds.h:903
TIntV InEIdV
Definition: network.h:1599

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1615 of file network.h.

Member Data Documentation

TInt TNEANet::TNode::Id
private

Definition at line 1598 of file network.h.

TIntV TNEANet::TNode::InEIdV
private

Definition at line 1599 of file network.h.

TIntV TNEANet::TNode::OutEIdV
private

Definition at line 1599 of file network.h.


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