|
Claw
1.7.3
|
Pass this class as the "Envents" template parameter of the depth scan class to sort the vertices of a graph with the topological sort algorithm. More...
#include <graph_algorithm.hpp>
Public Types | |
|
typedef scan_events< Graph > ::vertex_type | vertex_type |
| typedef std::vector< vertex_type > | result_type |
| typedef result_type::const_iterator | const_iterator |
| typedef topological_sort< Graph > | self_type |
Public Types inherited from claw::scan_events< Graph > | |
| typedef Graph::vertex_type | vertex_type |
Public Member Functions | |
| void | init (const Graph &g) |
| Initialize the scan. | |
| void | end_vertex (const vertex_type &s) |
| void | operator() (const Graph &g) |
| const vertex_type & | operator[] (unsigned int index) const |
| const_iterator | begin () const |
| const_iterator | end () const |
Public Member Functions inherited from claw::scan_events< Graph > | |
| void | start_vertex (const vertex_type &v) |
| void | visit_edge (const vertex_type &v1, const vertex_type &v2) |
Pass this class as the "Envents" template parameter of the depth scan class to sort the vertices of a graph with the topological sort algorithm.
When a node process ends, the node is added to a vector. The vector is filled from end to begining.
Definition at line 160 of file graph_algorithm.hpp.
| void claw::topological_sort< Graph >::init | ( | const Graph & | g | ) |
Initialize the scan.
| g | The graph that will be scanned. |
Reimplemented from claw::scan_events< Graph >.
Definition at line 179 of file graph_algorithm.tpp.
1.8.1.2