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
TBPGraph::TNode Class Reference

#include <graph.h>

Collaboration diagram for TBPGraph::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
TNodeTy NodeTy

Friends

class TBPGraph

Detailed Description

Definition at line 825 of file graph.h.


Constructor & Destructor Documentation

TBPGraph::TNode::TNode ( ) [inline]

Definition at line 831 of file graph.h.

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

Definition at line 832 of file graph.h.

: Id(NId), NIdV(), NodeTy(true?bgsLeft:bgsRight) { }
TBPGraph::TNode::TNode ( const TNode Node) [inline]

Definition at line 833 of file graph.h.

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

Definition at line 834 of file graph.h.

References NodeTy, and TInt::Val.

: Id(SIn), NIdV(SIn), NodeTy(bgsUndef) { TInt Ty(SIn); NodeTy=(TNodeTy)Ty.Val; }

Member Function Documentation

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

Definition at line 837 of file graph.h.

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

Referenced by TBPGraph::Dump(), GetInDeg(), and GetOutDeg().

{ return NIdV.Len(); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 836 of file graph.h.

References Id.

Referenced by TBPGraph::DelNode(), and TBPGraph::Dump().

{ return Id; }

Here is the caller graph for this function:

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

Definition at line 838 of file graph.h.

References GetDeg().

{ return GetDeg(); }

Here is the call graph for this function:

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

Definition at line 840 of file graph.h.

References GetNbrNId().

{ return GetNbrNId(NodeN); }

Here is the call graph for this function:

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

Definition at line 842 of file graph.h.

References NIdV.

Referenced by TBPGraph::Dump(), GetInNId(), and GetOutNId().

{ return NIdV[NodeN]; }

Here is the caller graph for this function:

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

Definition at line 839 of file graph.h.

References GetDeg().

Referenced by TBPGraph::DelNode().

{ return GetDeg(); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 841 of file graph.h.

References GetNbrNId().

Referenced by TBPGraph::DelNode().

{ return GetNbrNId(NodeN); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 844 of file graph.h.

References IsNbrNId().

{ return IsNbrNId(NId); }

Here is the call graph for this function:

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

Definition at line 843 of file graph.h.

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

Referenced by 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 TBPGraph::TNode::IsOutNId ( const int &  NId) const [inline]

Definition at line 845 of file graph.h.

References IsNbrNId().

{ return IsNbrNId(NId); }

Here is the call graph for this function:

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

Definition at line 847 of file graph.h.

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

{ NIdV.Pack(); }

Here is the call graph for this function:

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

Definition at line 846 of file graph.h.

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

{ NIdV.Pack(); }

Here is the call graph for this function:

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

Definition at line 835 of file graph.h.

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

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

Here is the call graph for this function:


Friends And Related Function Documentation

friend class TBPGraph [friend]

Definition at line 848 of file graph.h.


Member Data Documentation

Definition at line 827 of file graph.h.

Referenced by GetId(), and Save().

Definition at line 829 of file graph.h.

Referenced by Save(), and TNode().


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