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