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
TBigNet< TNodeData, IsDir >::TNode Class Reference

Node container class. More...

#include <bignet.h>

Public Member Functions

 TNode ()
 
 TNode (const int &InVecId, const int &OutVecId)
 
 TNode (const int &InVecId, const int &OutVecId, const TNodeDat &NodeDat)
 
 TNode (const TNode &Node)
 
 TNode (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
bool IsUnused () const
 Tests whether the node is deleted then it is unused (and its InVId==OutVId==-1) More...
 

Public Attributes

TInt InVId
 Id of the vector storing nodes that point to the current node. More...
 
TInt OutVId
 Id of the vector storing nodes that the current node points to. More...
 
TNodeDat Dat
 Data associated with the node. More...
 

Detailed Description

template<class TNodeData, bool IsDir>
class TBigNet< TNodeData, IsDir >::TNode

Node container class.

For memory efficiency we store edge lists in a vector pool.

Definition at line 26 of file bignet.h.

Constructor & Destructor Documentation

template<class TNodeData, bool IsDir>
TBigNet< TNodeData, IsDir >::TNode::TNode ( )
inline

Definition at line 37 of file bignet.h.

37 : InVId(-1), OutVId(-1), Dat() { }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33
template<class TNodeData, bool IsDir>
TBigNet< TNodeData, IsDir >::TNode::TNode ( const int &  InVecId,
const int &  OutVecId 
)
inline

Definition at line 38 of file bignet.h.

38 : InVId(InVecId), OutVId(OutVecId), Dat() { }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33
template<class TNodeData, bool IsDir>
TBigNet< TNodeData, IsDir >::TNode::TNode ( const int &  InVecId,
const int &  OutVecId,
const TNodeDat NodeDat 
)
inline

Definition at line 39 of file bignet.h.

39  :
40  InVId(InVecId), OutVId(OutVecId), Dat(NodeDat) { }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33
template<class TNodeData, bool IsDir>
TBigNet< TNodeData, IsDir >::TNode::TNode ( const TNode Node)
inline

Definition at line 41 of file bignet.h.

41 : InVId(Node.InVId), OutVId(Node.OutVId), Dat(Node.Dat) { }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33
template<class TNodeData, bool IsDir>
TBigNet< TNodeData, IsDir >::TNode::TNode ( TSIn SIn)
inline

Definition at line 42 of file bignet.h.

42 : InVId(SIn), OutVId(SIn), Dat(SIn) { }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33

Member Function Documentation

template<class TNodeData, bool IsDir>
bool TBigNet< TNodeData, IsDir >::TNode::IsUnused ( ) const
inline

Tests whether the node is deleted then it is unused (and its InVId==OutVId==-1)

Definition at line 45 of file bignet.h.

45 { return InVId==-1 && OutVId==-1; }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33
template<class TNodeData, bool IsDir>
void TBigNet< TNodeData, IsDir >::TNode::Save ( TSOut SOut) const
inline

Definition at line 43 of file bignet.h.

43 { SOut.Save(InVId); SOut.Save(OutVId); Dat.Save(SOut); }
TInt InVId
Id of the vector storing nodes that point to the current node.
Definition: bignet.h:29
TNodeDat Dat
Data associated with the node.
Definition: bignet.h:35
void Save(const bool &Bool)
Definition: fl.h:173
TInt OutVId
Id of the vector storing nodes that the current node points to.
Definition: bignet.h:33

Member Data Documentation

template<class TNodeData, bool IsDir>
TNodeDat TBigNet< TNodeData, IsDir >::TNode::Dat

Data associated with the node.

Definition at line 35 of file bignet.h.

template<class TNodeData, bool IsDir>
TInt TBigNet< TNodeData, IsDir >::TNode::InVId

Id of the vector storing nodes that point to the current node.

Definition at line 29 of file bignet.h.

template<class TNodeData, bool IsDir>
TInt TBigNet< TNodeData, IsDir >::TNode::OutVId

Id of the vector storing nodes that the current node points to.

If the graph is undirected (IsDir=false) then InVId==OutVId.

Definition at line 33 of file bignet.h.


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