graph_analysis
Public Member Functions | List of all members
graph_analysis::algorithms::DFS Class Reference

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())
 

Detailed Description

Implementation of Depth-First-Search ¸

This implements the depth-first search algorithm, it is based on the existing implementation of the algorithm in Boost

Constructor & Destructor Documentation

◆ DFS()

graph_analysis::algorithms::DFS::DFS ( const BaseGraph::Ptr &  graph,
const DFSVisitor::Ptr &  visitor,
Skipper  skipper = Skipper() 
)
Parameters
graphGraph to search
visitorVisitor object, which will be called, when BFS visits a vertex or edge
skipperSkipper object to defined, when an edge does not need to * be followed

Member Function Documentation

◆ run()

void graph_analysis::algorithms::DFS::run ( const Vertex::Ptr &  startVertex = Vertex::Ptr())

Start the algorithm beginning at the specified vertex

Parameters
startVertexStart vertex of the search

The documentation for this class was generated from the following files: