Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_EDGE_ITERATOR_HPP
2 #define GRAPH_ANALYSIS_EDGE_ITERATOR_HPP
20 typedef shared_ptr<EdgeIterator>
Ptr;
30 virtual bool next() {
throw std::runtime_error(
"EdgeIterator: next() has not been implemented"); }
62 #endif // GRAPH_ANALYSIS_EDGE_ITERATOR_HPP
bool skip(const Edge::Ptr &edge) const
Check if edge should be skipped.
Definition: EdgeIterator.cpp:5
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
virtual bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: EdgeIterator.hpp:30
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
A subgraph represent a particular filtered 'view' on a BaseGraph.
Definition: SubGraph.hpp:32
EdgeIterator interface Allows to access all edges of a graph. Requires implementation to wrap the und...
Definition: EdgeIterator.hpp:14
function1< bool, const Edge::Ptr & > SkipFunction
Definition: EdgeIterator.hpp:21
void setNext(const Edge::Ptr &edge)
Set next edge Should be applied by class implementing next()
Definition: EdgeIterator.hpp:48
shared_ptr< EdgeIterator > Ptr
Definition: EdgeIterator.hpp:20
const Edge::Ptr & current()
Definition: EdgeIterator.hpp:35
virtual ~EdgeIterator()
Definition: EdgeIterator.hpp:23
void setSkipFunction(SkipFunction skipFunction)
Definition: EdgeIterator.hpp:54