template<typename Graph>
py::EdgeView class

A view class for iterating over edges in a Boost Graph.

Template parameters
Graph The Boost graph type

This class provides iterators for traversing all edges in the graph.

Constructors, destructors, conversion operators

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

Public functions

auto begin() const -> boost::graph_traits<Graph>::edge_iterator
Get iterator to the first edge.
auto end() const -> boost::graph_traits<Graph>::edge_iterator
Get iterator past the last edge.
auto cbegin() const -> boost::graph_traits<Graph>::edge_iterator
Get const iterator to the first edge.
auto cend() const -> boost::graph_traits<Graph>::edge_iterator
Get const iterator past the last edge.

Function documentation

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

Construct a new Edge View object.

Parameters
gra in The graph to create a view of

template<typename Graph>
boost::graph_traits<Graph>::edge_iterator py::EdgeView<Graph>::begin() const

Get iterator to the first edge.

Returns Iterator to the first edge

template<typename Graph>
boost::graph_traits<Graph>::edge_iterator py::EdgeView<Graph>::end() const

Get iterator past the last edge.

Returns Iterator past the last edge

template<typename Graph>
boost::graph_traits<Graph>::edge_iterator py::EdgeView<Graph>::cbegin() const

Get const iterator to the first edge.

Returns Const iterator to the first edge

template<typename Graph>
boost::graph_traits<Graph>::edge_iterator py::EdgeView<Graph>::cend() const

Get const iterator past the last edge.

Returns Const iterator past the last edge