Py2Cpp 1.6.3; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
Public Member Functions | List of all members
py::EdgeView< Graph > Class Template Reference

Edge view for Boost Graph Library graphs. More...

#include <nx2bgl.hpp>

Public Member Functions

 EdgeView (const Graph &gra)
 Construct a new Edge View object.
 
auto begin () const
 Get iterator to the beginning of edges.
 
auto end () const
 Get iterator to the end of edges.
 
auto cbegin () const
 Get const iterator to the beginning of edges.
 
auto cend () const
 Get const iterator to the end of edges.
 

Detailed Description

template<typename Graph>
class py::EdgeView< Graph >

Edge view for Boost Graph Library graphs.

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

Template Parameters
GraphThe Boost Graph Library graph type

Constructor & Destructor Documentation

◆ EdgeView()

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

Construct a new Edge View object.

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

Parameters
[in]graReference to the graph to view edges from

Member Function Documentation

◆ begin()

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

Get iterator to the beginning of edges.

Returns an iterator to the first edge in the graph.

Returns
Iterator to the first edge

◆ cbegin()

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

Get const iterator to the beginning of edges.

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

Returns
Const iterator to the first edge

◆ cend()

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

Get const iterator to the end of edges.

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

Returns
Const iterator past the last edge

◆ end()

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

Get iterator to the end of edges.

Returns an iterator past the last edge in the graph.

Returns
Iterator past the last edge

The documentation for this class was generated from the following file: