template<class PGraph, bool OnlyCount = false>
class TSccVisitor< PGraph, OnlyCount >
Strongly connected componetns Depht-First-Search visitor class.
Definition at line 234 of file cncom.h.
template<class PGraph, bool OnlyCount = false>
void TSccVisitor< PGraph, OnlyCount >::FinishNode |
( |
const int & |
NId | ) |
|
|
inline |
Definition at line 248 of file cncom.h.
References TCnCom::Add(), TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::GetDat(), TSccVisitor< PGraph, OnlyCount >::GetMinDiscTm(), TVec< TVal, TSizeTy >::Last(), TSStack< TVal >::Pop(), TSStack< TVal >::Top(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
249 typename PGraph::TObj::TNodeI NI =
Graph->GetNI(NId);
252 for (
int i = 0; i < NI.GetOutDeg(); i++) {
255 if (TmRtW.
Val1 < 0) {
257 if (TmRtN.
Val2 == NId) {
void Add(const int &NodeId)
int GetMinDiscTm(const int &NId1, const int &NId2) const
const TDat & GetDat(const TKey &Key) const
const TVal & Last() const
Returns a reference to the last element of the vector.
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
TDat & AddDat(const TKey &Key)
THash< TInt, TIntPr > TmRtH