ROSE
0.11.145.0
|
Accumulates vertex or edge IDs.
This is a vertex or edge visitor that accumulates the IDs of the vertices or edges that are visited. It can be passed as the functor for any of the functor-calling traversal functions.
Definition at line 1402 of file GraphTraversal.h.
#include <util/Sawyer/GraphTraversal.h>
Public Member Functions | |
IdAccumulator (size_t n) | |
void | operator() (typename GraphTraits< Graph >::VertexIterator v) |
void | operator() (typename GraphTraits< Graph >::VertexIterator v, typename GraphTraits< Graph >::VertexIterator) |
void | operator() (typename GraphTraits< Graph >::EdgeIterator e) |
void | operator() (typename GraphTraits< Graph >::EdgeIterator e, typename GraphTraits< Graph >::EdgeIterator) |
Public Attributes | |
std::vector< size_t > | ids |