|
graph_analysis
|
Implementation of Depth-First-Search ¸ More...
#include <DFS.hpp>
Public Member Functions | |
| DFS (const BaseGraph::Ptr &graph, const DFSVisitor::Ptr &visitor, Skipper skipper=Skipper()) | |
| void | run (const Vertex::Ptr &startVertex=Vertex::Ptr()) |
Implementation of Depth-First-Search ¸
This implements the depth-first search algorithm, it is based on the existing implementation of the algorithm in Boost
| graph_analysis::algorithms::DFS::DFS | ( | const BaseGraph::Ptr & | graph, |
| const DFSVisitor::Ptr & | visitor, | ||
| Skipper | skipper = Skipper() |
||
| ) |
| void graph_analysis::algorithms::DFS::run | ( | const Vertex::Ptr & | startVertex = Vertex::Ptr() | ) |
Start the algorithm beginning at the specified vertex
| startVertex | Start vertex of the search |
1.8.13