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