SNAP Library 2.2, User Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TUNGraph::TNode Class Reference

#include <graph.h>

List of all members.

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 TUNGraph
class TUNGraphMtx

Detailed Description

Definition at line 37 of file graph.h.


Constructor & Destructor Documentation

TUNGraph::TNode::TNode ( ) [inline]

Definition at line 42 of file graph.h.

: Id(-1), NIdV() { }
TUNGraph::TNode::TNode ( const int &  NId) [inline]

Definition at line 43 of file graph.h.

: Id(NId), NIdV() { }
TUNGraph::TNode::TNode ( const TNode Node) [inline]

Definition at line 44 of file graph.h.

: Id(Node.Id), NIdV(Node.NIdV) { }
TUNGraph::TNode::TNode ( TSIn SIn) [inline]

Definition at line 45 of file graph.h.

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

Member Function Documentation

int TUNGraph::TNode::GetDeg ( ) const [inline]

Definition at line 48 of file graph.h.

{ return NIdV.Len(); }
int TUNGraph::TNode::GetId ( ) const [inline]

Definition at line 47 of file graph.h.

{ return Id; }
int TUNGraph::TNode::GetInDeg ( ) const [inline]

Definition at line 49 of file graph.h.

{ return GetDeg(); }
int TUNGraph::TNode::GetInNId ( const int &  NodeN) const [inline]

Definition at line 51 of file graph.h.

{ return GetNbrNId(NodeN); }
int TUNGraph::TNode::GetNbrNId ( const int &  NodeN) const [inline]

Definition at line 53 of file graph.h.

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

Definition at line 50 of file graph.h.

{ return GetDeg(); }
int TUNGraph::TNode::GetOutNId ( const int &  NodeN) const [inline]

Definition at line 52 of file graph.h.

{ return GetNbrNId(NodeN); }
bool TUNGraph::TNode::IsInNId ( const int &  NId) const [inline]

Definition at line 55 of file graph.h.

{ return IsNbrNId(NId); }
bool TUNGraph::TNode::IsNbrNId ( const int &  NId) const [inline]

Definition at line 54 of file graph.h.

{ return NIdV.SearchBin(NId)!=-1; }
bool TUNGraph::TNode::IsOutNId ( const int &  NId) const [inline]

Definition at line 56 of file graph.h.

{ return IsNbrNId(NId); }
void TUNGraph::TNode::PackNIdV ( ) [inline]

Definition at line 58 of file graph.h.

{ NIdV.Pack(); }
void TUNGraph::TNode::PackOutNIdV ( ) [inline]

Definition at line 57 of file graph.h.

{ NIdV.Pack(); }
void TUNGraph::TNode::Save ( TSOut SOut) const [inline]

Definition at line 46 of file graph.h.

{ Id.Save(SOut); NIdV.Save(SOut); }

Friends And Related Function Documentation

friend class TUNGraph [friend]

Definition at line 59 of file graph.h.

friend class TUNGraphMtx [friend]

Definition at line 60 of file graph.h.


Member Data Documentation

Definition at line 39 of file graph.h.

Definition at line 40 of file graph.h.


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