1 #ifndef GRAPH_ANALYSIS_LEMON_ARC_ITERATOR_HPP 2 #define GRAPH_ANALYSIS_LEMON_ARC_ITERATOR_HPP 4 #include "../EdgeIterator.hpp" 5 #include "../Vertex.hpp" 21 while(
mArcIt != ::lemon::INVALID )
47 , mOutArcIt(graph.raw(), graph.raw().nodeFromId( vertex->getId(graph.getId())))
52 while( mOutArcIt != ::lemon::INVALID )
79 , mInArcIt(graph.raw(), graph.raw().nodeFromId( vertex->getId(graph.getId())))
84 while( mInArcIt != ::lemon::INVALID )
111 , mInArcIterator(graph, vertex)
112 , mOutArcIterator(graph, vertex)
117 if(mInArcIterator.next())
119 setNext( mInArcIterator.current() );
123 if(mOutArcIterator.next())
125 setNext( mOutArcIterator.current() );
142 #endif // GRAPH_ANALYSIS_LEMON_ARC_ITERATOR_HPP T::graph_t::ArcIt mArcIt
Definition: ArcIterator.hpp:37
Definition: ArcIterator.hpp:11
OutArcIterator(const T &graph, Vertex::Ptr vertex)
Definition: ArcIterator.hpp:45
Definition: ArcIterator.hpp:74
void setNext(const Edge::Ptr &edge)
Set next edge Should be applied by class implementing next()
Definition: EdgeIterator.hpp:48
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: ArcIterator.hpp:19
Definition: ArcIterator.hpp:106
bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: ArcIterator.hpp:82
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
const T & mGraph
Definition: ArcIterator.hpp:67
Definition: ArcIterator.hpp:42
InOutArcIterator(const T &graph, Vertex::Ptr vertex)
Definition: ArcIterator.hpp:109
InArcIterator(const T &graph, Vertex::Ptr vertex)
Definition: ArcIterator.hpp:77
ArcIterator(const T &graph)
Definition: ArcIterator.hpp:14
const T & mGraph
Definition: ArcIterator.hpp:99
bool skip(const Edge::Ptr &edge) const
Check if edge should be skipped.
Definition: EdgeIterator.cpp:5
bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: ArcIterator.hpp:115
T::graph_t::InArcIt mInArcIt
Definition: ArcIterator.hpp:100
OutArcIterator< T > mOutArcIterator
Definition: ArcIterator.hpp:136
bool next()
Test if there is a next item and if it is then updates the current to next.
Definition: ArcIterator.hpp:50
T::graph_t::OutArcIt mOutArcIt
Definition: ArcIterator.hpp:68
const T & mGraph
Definition: ArcIterator.hpp:36
EdgeIterator interface Allows to access all edges of a graph. Requires implementation to wrap the und...
Definition: EdgeIterator.hpp:14
InArcIterator< T > mInArcIterator
Definition: ArcIterator.hpp:135
const T & mGraph
Definition: ArcIterator.hpp:134