1 #ifndef GRAPH_ANALYSIS_BOOST_GRAPH_NODE_ITERATOR_HPP 2 #define GRAPH_ANALYSIS_BOOST_GRAPH_NODE_ITERATOR_HPP 4 #include "../VertexIterator.hpp" 7 namespace boost_graph {
16 boost::tie(mStart, mEnd) = boost::vertices(mGraph.raw());
22 while(mCurrent != mEnd)
25 Vertex::Ptr vertex = mGraph.raw()[vertexDescriptor];
46 #endif // GRAPH_ANALYSIS_BOOST_GRAPH_NODE_ITERATOR_HPP boost::graph_traits< BidirectionalGraph >::vertex_iterator VertexIteratorImpl
Definition: DirectedGraph.hpp:32
VertexIterator interface Allows to access all vertices of a graph. Requires implementation to wrap th...
Definition: VertexIterator.hpp:15
boost::graph_traits< BidirectionalGraph >::vertex_descriptor VertexDescriptor
Definition: DirectedGraph.hpp:31
Definition: NodeIterator.hpp:10
bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: NodeIterator.hpp:20
bool skip(const Vertex::Ptr &vertex) const
Definition: VertexIterator.cpp:5
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
void setNext(const Vertex::Ptr &vertex)
Set next vertex Should be applied by class implementing next()
Definition: VertexIterator.hpp:49
NodeIterator(const T &graph)
Definition: NodeIterator.hpp:13