|
ADS
Algorithms and Data Structures
|
The strongly connected components of an oriented graph by one visit in depth, beyond the book, whose visits and components by the algorithm of Kosaraju are in Visit.h [see Visit.h, which includes this header]: More...
#include "ADS/Contract.h"#include "ADS/graph/Graph.h"#include "ADS/graph/Visit.h"#include <algorithm>#include <cstddef>#include <utility>#include <vector>#include "ADS/graph/impl/StrongComponents.tpp"Go to the source code of this file.
Namespaces | |
| namespace | ADS |
Functions | |
| template<Graph G> | |
| std::vector< int > | ADS::sccTarjan (const G &g) |
| the strongly connected components of scc() by one visit in depth, with no transposed graph, numbered as there | |
| template<Graph G> | |
| std::vector< int > | ADS::sccPearce (const G &g) |
| the strongly connected components of sccTarjan() with one integer and one bit per node in place of three integers, numbered as scc() does | |
The strongly connected components of an oriented graph by one visit in depth, beyond the book, whose visits and components by the algorithm of Kosaraju are in Visit.h [see Visit.h, which includes this header]:
The visits in depth keep their recursion on an explicit stack, as those of Visit.h. The contracts [see Contract.h]: at the level of the audits each node has a component and the numbers of the components are a topological order of their graph. The functions are defined in StrongComponents.tpp.