template<typename _Graph>
py::GrAdaptor class

Template parameters
_Graph

Base classes

template<typename Graph>
class VertexView<_Graph>

Public types

using Vertex = typename boost::graph_traits<_Graph>::vertex_descriptor
using node_t = Vertex
using edge_t = typename boost::graph_traits<_Graph>::edge_descriptor

Public static functions

static auto null_vertex() -> Vertex -> auto

Constructors, destructors, conversion operators

GrAdaptor() deleted
Construct a new gr Adaptor object.
GrAdaptor(_Graph&& gra) explicit noexcept
Construct a new gr Adaptor object.

Public functions

auto number_of_nodes() const -> auto
auto number_of_edges() const -> auto
auto edges() const -> EdgeView< _Graph > -> auto
auto neighbors(Vertex v) const -> AtlasView< Vertex, _Graph > -> auto
auto add_edge(int u, int v) -> auto
template<typename Edge>
auto source(const Edge& e) const -> Vertex -> auto
template<typename Edge>
auto target(const Edge& e) const -> Vertex -> auto
template<typename Edge>
auto end_points(const Edge& e) const -> auto

Function documentation

template<typename _Graph>
static auto py::GrAdaptor<_Graph>::null_vertex() -> Vertex

Returns Vertex

template<typename _Graph>
py::GrAdaptor<_Graph>::GrAdaptor(_Graph&& gra) explicit noexcept

Construct a new gr Adaptor object.

Parameters
gra in

template<typename _Graph>
auto py::GrAdaptor<_Graph>::edges() const -> EdgeView< _Graph >

Returns EdgeView<_Graph>

template<typename _Graph>
auto py::GrAdaptor<_Graph>::neighbors(Vertex v) const -> AtlasView< Vertex, _Graph >

Parameters
in
Returns AtlasView<Vertex, _Graph>

template<typename _Graph>
auto py::GrAdaptor<_Graph>::add_edge(int u, int v)

Parameters
in
in

template<typename _Graph> template<typename Edge>
auto py::GrAdaptor<_Graph>::source(const Edge& e) const -> Vertex

Template parameters
Edge
Parameters
in
Returns Vertex

template<typename _Graph> template<typename Edge>
auto py::GrAdaptor<_Graph>::target(const Edge& e) const -> Vertex

Template parameters
Edge
Parameters
in
Returns Vertex

template<typename _Graph> template<typename Edge>
auto py::GrAdaptor<_Graph>::end_points(const Edge& e) const

Template parameters
Edge
Parameters
in