1 #ifndef NODENAMEFINDER_H_
2 #define NODENAMEFINDER_H_
4 #include <boost/graph/adjacency_list.hpp>
13 typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, std::shared_ptr<WorkGraphNode>, std::shared_ptr<WorkGraphEdge> >
Graph;
30 bool operator()(boost::graph_traits<Graph>::vertex_descriptor vertex)
const;
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, std::shared_ptr< WorkGraphNode >, std::shared_ptr< WorkGraphEdge > > Graph
Define a directed graph type.
A helper struct that determines if a node in the graph has a given name.
Graph const & graph
This graph stores the vertices.
NodeNameFinder(std::string const &name, Graph const &graph)
const std::string name
We are looking for vertices with this name.
bool operator()(boost::graph_traits< Graph >::vertex_descriptor vertex) const
Does a given vertex have the same name as the given name.