ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
StrongComponents.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*------------------------ File StrongComponents.h -------------------------*/
3/*--------------------------------------------------------------------------*/
38/*--------------------------------------------------------------------------*/
39/*----------------------------- DEFINITIONS --------------------------------*/
40/*--------------------------------------------------------------------------*/
41
42#ifndef __ADS_StrongComponents
43 #define __ADS_StrongComponents
44/* self-identification: #endif constant */
45
46/*--------------------------------------------------------------------------*/
47/*------------------------------ INCLUDES ----------------------------------*/
48/*--------------------------------------------------------------------------*/
49
50#include "ADS/Contract.h"
51#include "ADS/graph/Graph.h"
52#include "ADS/graph/Visit.h"
53
54#include <algorithm>
55#include <cstddef>
56#include <utility>
57#include <vector>
58
59/*--------------------------------------------------------------------------*/
60/*--------------------------- NAMESPACE ------------------------------------*/
61/*--------------------------------------------------------------------------*/
62
63namespace ADS
64{
65
66/*--------------------------------------------------------------------------*/
67/*---------------------- THE COMPONENTS BY ONE VISIT -----------------------*/
68/*--------------------------------------------------------------------------*/
69
108template< Graph G >
109std::vector< int > sccTarjan( const G & g );
110
152template< Graph G >
153std::vector< int > sccPearce( const G & g );
154
155/*--------------------------------------------------------------------------*/
156
157} // end( namespace ADS )
158
159/*--------------------------------------------------------------------------*/
160/*-------------------------- IMPLEMENTATION --------------------------------*/
161/*--------------------------------------------------------------------------*/
162
163#include "ADS/graph/impl/StrongComponents.tpp"
164
165/*--------------------------------------------------------------------------*/
166
167#endif /* StrongComponents.h included */
168
169/*--------------------------------------------------------------------------*/
170/*---------------------- End File StrongComponents.h -----------------------*/
171/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The visits of a GRAPH of section 9.5 and their applications, each in time on lists or vectors of adj...
The GRAPH of chapter 9 and its realizations.
std::vector< int > sccTarjan(const G &g)
the strongly connected components of scc() by one visit in depth, with no transposed graph,...
std::vector< int > sccPearce(const G &g)
the strongly connected components of sccTarjan() with one integer and one bit per node in place of th...
Definition ADT.h:96