template<typename Graph>
py::EdgeView class

Edge view for Boost Graph Library graphs.

Template parameters
Graph The Boost Graph Library graph type

Provides iterable access to edges in a BGL graph. This class holds a reference to a graph and provides iterator interfaces for traversing edges.

Constructors, destructors, conversion operators

EdgeView(const Graph& gra) explicit
Construct a new Edge View object.

Public functions

auto begin() const -> auto
Get iterator to the beginning of edges.
auto end() const -> auto
Get iterator to the end of edges.
auto cbegin() const -> auto
Get const iterator to the beginning of edges.
auto cend() const -> auto
Get const iterator to the end of edges.

Function documentation

template<typename Graph>
py::EdgeView<Graph>::EdgeView(const Graph& gra) explicit

Construct a new Edge View object.

Parameters
gra in Reference to the graph to view edges from

Creates an edge view from a reference to an existing graph.

template<typename Graph>
auto py::EdgeView<Graph>::begin() const

Get iterator to the beginning of edges.

Returns Iterator to the first edge

Returns an iterator to the first edge in the graph.

template<typename Graph>
auto py::EdgeView<Graph>::end() const

Get iterator to the end of edges.

Returns Iterator past the last edge

Returns an iterator past the last edge in the graph.

template<typename Graph>
auto py::EdgeView<Graph>::cbegin() const

Get const iterator to the beginning of edges.

Returns Const iterator to the first edge

Returns a const iterator to the first edge in the graph.

template<typename Graph>
auto py::EdgeView<Graph>::cend() const

Get const iterator to the end of edges.

Returns Const iterator past the last edge

Returns a const iterator past the last edge in the graph.