ADS
Algorithms and Data Structures
Toggle main menu visibility
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
63
namespace
ADS
64
{
65
66
/*--------------------------------------------------------------------------*/
67
/*---------------------- THE COMPONENTS BY ONE VISIT -----------------------*/
68
/*--------------------------------------------------------------------------*/
69
108
template
< Graph G >
109
std::vector< int >
sccTarjan
(
const
G & g );
110
152
template
< Graph G >
153
std::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
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Visit.h
The visits of a GRAPH of section 9.5 and their applications, each in time on lists or vectors of adj...
Graph.h
The GRAPH of chapter 9 and its realizations.
ADS::sccTarjan
std::vector< int > sccTarjan(const G &g)
the strongly connected components of scc() by one visit in depth, with no transposed graph,...
ADS::sccPearce
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...
ADS
Definition
ADT.h:96
ADS
graph
StrongComponents.h
Generated by
1.17.0