1 #ifndef GRAPH_ANALYSIS_VERTEX_ITERATOR_HPP 2 #define GRAPH_ANALYSIS_VERTEX_ITERATOR_HPP 21 typedef shared_ptr<VertexIterator>
Ptr;
31 virtual bool next() {
return false; }
58 SkipFunction mSkipFunction;
62 #endif // GRAPH_ANALYSIS_VERTEX_ITERATOR_HPP VertexIterator interface Allows to access all vertices of a graph. Requires implementation to wrap th...
Definition: VertexIterator.hpp:15
virtual bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: VertexIterator.hpp:31
function1< bool, const Vertex::Ptr & > SkipFunction
Definition: VertexIterator.hpp:22
const Vertex::Ptr & current()
Definition: VertexIterator.hpp:36
bool skip(const Vertex::Ptr &vertex) const
Definition: VertexIterator.cpp:5
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
void setSkipFunction(SkipFunction skipFunction)
Definition: VertexIterator.hpp:54
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
A subgraph represent a particular filtered 'view' on a BaseGraph.
Definition: SubGraph.hpp:32
virtual ~VertexIterator()
Definition: VertexIterator.hpp:24
shared_ptr< VertexIterator > Ptr
Definition: VertexIterator.hpp:21
void setNext(const Vertex::Ptr &vertex)
Set next vertex Should be applied by class implementing next()
Definition: VertexIterator.hpp:49