SNAP Library , Developer Reference  2013-01-07 14:03:36
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>

Collaboration diagram for TUNGraph::TNode:

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 36 of file graph.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file graph.h.

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

Definition at line 42 of file graph.h.

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

Definition at line 43 of file graph.h.

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

Definition at line 44 of file graph.h.

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

Member Function Documentation

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

Definition at line 47 of file graph.h.

References TVec< TVal >::Len(), and NIdV.

Referenced by TUNGraph::AddNode(), TUNGraph::DelNode(), TUNGraph::Dump(), GetInDeg(), GetOutDeg(), and TUNGraph::IsOk().

{ return NIdV.Len(); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 46 of file graph.h.

References Id.

Referenced by TUNGraph::DelNode(), TUNGraph::Dump(), and TUNGraph::IsOk().

{ return Id; }

Here is the caller graph for this function:

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

Definition at line 48 of file graph.h.

References GetDeg().

{ return GetDeg(); }

Here is the call graph for this function:

int TUNGraph::TNode::GetInNId ( const int &  NodeN) const [inline]

Definition at line 50 of file graph.h.

References GetNbrNId().

{ return GetNbrNId(NodeN); }

Here is the call graph for this function:

int TUNGraph::TNode::GetNbrNId ( const int &  NodeN) const [inline]

Definition at line 52 of file graph.h.

References NIdV.

Referenced by TUNGraph::DelNode(), TUNGraph::Dump(), GetInNId(), GetOutNId(), and TUNGraph::IsOk().

{ return NIdV[NodeN]; }

Here is the caller graph for this function:

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

Definition at line 49 of file graph.h.

References GetDeg().

{ return GetDeg(); }

Here is the call graph for this function:

int TUNGraph::TNode::GetOutNId ( const int &  NodeN) const [inline]

Definition at line 51 of file graph.h.

References GetNbrNId().

{ return GetNbrNId(NodeN); }

Here is the call graph for this function:

bool TUNGraph::TNode::IsInNId ( const int &  NId) const [inline]

Definition at line 54 of file graph.h.

References IsNbrNId().

{ return IsNbrNId(NId); }

Here is the call graph for this function:

bool TUNGraph::TNode::IsNbrNId ( const int &  NId) const [inline]

Definition at line 53 of file graph.h.

References NIdV, and TVec< TVal >::SearchBin().

Referenced by TUNGraph::IsEdge(), IsInNId(), and IsOutNId().

{ return NIdV.SearchBin(NId)!=-1; }

Here is the call graph for this function:

Here is the caller graph for this function:

bool TUNGraph::TNode::IsOutNId ( const int &  NId) const [inline]

Definition at line 55 of file graph.h.

References IsNbrNId().

{ return IsNbrNId(NId); }

Here is the call graph for this function:

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

Definition at line 57 of file graph.h.

References NIdV, and TVec< TVal >::Pack().

{ NIdV.Pack(); }

Here is the call graph for this function:

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

Definition at line 56 of file graph.h.

References NIdV, and TVec< TVal >::Pack().

{ NIdV.Pack(); }

Here is the call graph for this function:

void TUNGraph::TNode::Save ( TSOut SOut) const [inline]

Definition at line 45 of file graph.h.

References Id, NIdV, TVec< TVal >::Save(), and TInt::Save().

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

Here is the call graph for this function:


Friends And Related Function Documentation

friend class TUNGraph [friend]

Definition at line 58 of file graph.h.

friend class TUNGraphMtx [friend]

Definition at line 59 of file graph.h.


Member Data Documentation

Definition at line 38 of file graph.h.

Referenced by TUNGraph::AddNode(), GetId(), and Save().


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