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
TUndirNet::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 GetInNId (const int &NodeN) const
 
int GetOutNId (const int &NodeN) const
 
int GetNbrNId (const int &NodeN) const
 
bool IsNbrNId (const int &NId) const
 
bool IsInNId (const int &NId) const
 
bool IsOutNId (const int &NId) const
 
void PackOutNIdV ()
 
void PackNIdV ()
 

Private Attributes

TInt Id
 
TIntV NIdV
 

Friends

class TUndirNet
 
class TUndirNetMtx
 

Detailed Description

Definition at line 2753 of file network.h.

Constructor & Destructor Documentation

TUndirNet::TNode::TNode ( )
inline

Definition at line 2758 of file network.h.

2758 : Id(-1), NIdV() { }
TUndirNet::TNode::TNode ( const int &  NId)
inline

Definition at line 2759 of file network.h.

2759 : Id(NId), NIdV() { }
TUndirNet::TNode::TNode ( const TNode Node)
inline

Definition at line 2760 of file network.h.

2760 : Id(Node.Id), NIdV(Node.NIdV) { }
TUndirNet::TNode::TNode ( TSIn SIn)
inline

Definition at line 2761 of file network.h.

2761 : Id(SIn), NIdV(SIn) { }

Member Function Documentation

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

Definition at line 2764 of file network.h.

2764 { return NIdV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
int TUndirNet::TNode::GetId ( ) const
inline

Definition at line 2763 of file network.h.

2763 { return Id; }
int TUndirNet::TNode::GetInDeg ( ) const
inline

Definition at line 2765 of file network.h.

2765 { return GetDeg(); }
int GetDeg() const
Definition: network.h:2764
int TUndirNet::TNode::GetInNId ( const int &  NodeN) const
inline

Definition at line 2767 of file network.h.

2767 { return GetNbrNId(NodeN); }
int GetNbrNId(const int &NodeN) const
Definition: network.h:2769
int TUndirNet::TNode::GetNbrNId ( const int &  NodeN) const
inline

Definition at line 2769 of file network.h.

2769 { return NIdV[NodeN]; }
int TUndirNet::TNode::GetOutDeg ( ) const
inline

Definition at line 2766 of file network.h.

2766 { return GetDeg(); }
int GetDeg() const
Definition: network.h:2764
int TUndirNet::TNode::GetOutNId ( const int &  NodeN) const
inline

Definition at line 2768 of file network.h.

2768 { return GetNbrNId(NodeN); }
int GetNbrNId(const int &NodeN) const
Definition: network.h:2769
bool TUndirNet::TNode::IsInNId ( const int &  NId) const
inline

Definition at line 2771 of file network.h.

2771 { return IsNbrNId(NId); }
bool IsNbrNId(const int &NId) const
Definition: network.h:2770
bool TUndirNet::TNode::IsNbrNId ( const int &  NId) const
inline

Definition at line 2770 of file network.h.

2770 { return NIdV.SearchBin(NId)!=-1; }
TSizeTy SearchBin(const TVal &Val) const
Returns the position of an element with value Val.
Definition: ds.h:1454
bool TUndirNet::TNode::IsOutNId ( const int &  NId) const
inline

Definition at line 2772 of file network.h.

2772 { return IsNbrNId(NId); }
bool IsNbrNId(const int &NId) const
Definition: network.h:2770
void TUndirNet::TNode::PackNIdV ( )
inline

Definition at line 2774 of file network.h.

2774 { NIdV.Pack(); }
void Pack()
Reduces vector capacity (frees memory) to match its size.
Definition: ds.h:1005
void TUndirNet::TNode::PackOutNIdV ( )
inline

Definition at line 2773 of file network.h.

2773 { NIdV.Pack(); }
void Pack()
Reduces vector capacity (frees memory) to match its size.
Definition: ds.h:1005
void TUndirNet::TNode::Save ( TSOut SOut) const
inline

Definition at line 2762 of file network.h.

2762 { Id.Save(SOut); NIdV.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1060
void Save(TSOut &SOut) const
Definition: ds.h:903

Friends And Related Function Documentation

friend class TUndirNet
friend

Definition at line 2775 of file network.h.

friend class TUndirNetMtx
friend

Definition at line 2776 of file network.h.

Member Data Documentation

TInt TUndirNet::TNode::Id
private

Definition at line 2755 of file network.h.

TIntV TUndirNet::TNode::NIdV
private

Definition at line 2756 of file network.h.


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