template<typename Graph>
VertexView class
Vertex view for Boost Graph Library graphs.
| Template parameters | |
|---|---|
| Graph | The Boost Graph Library graph type |
Provides iterable access to vertices in a BGL graph. This class wraps a graph and provides iterator interfaces for traversing vertices.
Constructors, destructors, conversion operators
- VertexView(Graph&& gra) explicit noexcept
- Construct a new Vertex View object.
Public functions
Function documentation
template<typename Graph>
py:: VertexView<Graph>:: VertexView(Graph&& gra) explicit noexcept
Construct a new Vertex View object.
| Parameters | |
|---|---|
| gra in | The graph to wrap (moved into this VertexView) |
Creates a vertex view from an existing graph by moving it into this wrapper.
template<typename Graph>
auto py:: VertexView<Graph>:: begin() const
Get iterator to the beginning of vertices.
| Returns | Iterator to the first vertex |
|---|
Returns an iterator to the first vertex in the graph.
template<typename Graph>
auto py:: VertexView<Graph>:: end() const
Get iterator to the end of vertices.
| Returns | Iterator past the last vertex |
|---|
Returns an iterator past the last vertex in the graph.
template<typename Graph>
auto py:: VertexView<Graph>:: cbegin() const
Get const iterator to the beginning of vertices.
| Returns | Const iterator to the first vertex |
|---|
Returns a const iterator to the first vertex in the graph.
template<typename Graph>
auto py:: VertexView<Graph>:: cend() const
Get const iterator to the end of vertices.
| Returns | Const iterator past the last vertex |
|---|
Returns a const iterator past the last vertex in the graph.