SNAP Library 2.0, Developer Reference  2013-05-13 16:33:57
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
TBiConVisitor Class Reference

Biconnected componetns Depth-First-Search visitor class. More...

#include <cncom.h>

Collaboration diagram for TBiConVisitor:

List of all members.

Public Member Functions

 TBiConVisitor ()
 TBiConVisitor (const int &Nodes)
void DiscoverNode (int NId)
void FinishNode (const int &NId)
void ExamineEdge (const int &NId1, const int &NId2)
void TreeEdge (const int &NId1, const int &NId2)
void BackEdge (const int &NId1, const int &NId2)
void FwdEdge (const int &NId1, const int &NId2)

Public Attributes

THash< TInt, TIntPrVnLowH
THash< TInt, TIntParentH
TSStack< TIntPrStack
TCnComV CnComV
TIntSet NSet
TInt Time

Detailed Description

Biconnected componetns Depth-First-Search visitor class.

Definition at line 190 of file cncom.h.


Constructor & Destructor Documentation

Definition at line 199 of file cncom.h.

{ }
TBiConVisitor::TBiConVisitor ( const int &  Nodes) [inline]

Definition at line 200 of file cncom.h.

: VnLowH(Nodes), ParentH(Nodes), Stack(Nodes) { }

Member Function Documentation

void TBiConVisitor::BackEdge ( const int &  NId1,
const int &  NId2 
) [inline]
void TBiConVisitor::DiscoverNode ( int  NId) [inline]

Definition at line 201 of file cncom.h.

References THash< TKey, TDat, THashFunc >::AddDat(), Time, and VnLowH.

{ Time++; VnLowH.AddDat(NId, TIntPr(Time, Time)); }

Here is the call graph for this function:

void TBiConVisitor::ExamineEdge ( const int &  NId1,
const int &  NId2 
) [inline]

Definition at line 215 of file cncom.h.

{ }
void TBiConVisitor::FwdEdge ( const int &  NId1,
const int &  NId2 
) [inline]

Definition at line 223 of file cncom.h.

{ }
void TBiConVisitor::TreeEdge ( const int &  NId1,
const int &  NId2 
) [inline]

Definition at line 216 of file cncom.h.

References THash< TKey, TDat, THashFunc >::AddDat(), ParentH, TSStack< TVal >::Push(), and Stack.

                                                  {
    ParentH.AddDat(NId2, NId1);
    Stack.Push(TIntPr(NId1, NId2)); }

Here is the call graph for this function:


Member Data Documentation

Definition at line 195 of file cncom.h.

Definition at line 196 of file cncom.h.

Referenced by FinishNode().

Definition at line 193 of file cncom.h.

Referenced by BackEdge(), FinishNode(), and TreeEdge().

Definition at line 194 of file cncom.h.

Referenced by BackEdge(), FinishNode(), and TreeEdge().

Definition at line 197 of file cncom.h.

Referenced by DiscoverNode().

Definition at line 192 of file cncom.h.

Referenced by BackEdge(), DiscoverNode(), and FinishNode().


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