#include <py2cpp-old/nx2bgl.hpp>
template<typename _Graph>
GrAdaptor class
Template parameters | |
---|---|
_Graph |
Base classes
-
template<typename Graph>class VertexView<_Graph>
Public types
Public static functions
- static auto null_vertex() -> Vertex -> auto
Constructors, destructors, conversion operators
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>:: add_edge(int u,
int v)
Parameters | |
---|---|
u in | |
v in |
template<typename _Graph>
template<typename Edge>
auto py:: GrAdaptor<_Graph>:: source(const Edge& e) const -> Vertex
Template parameters | |
---|---|
Edge | |
Parameters | |
e in | |
Returns | Vertex |
template<typename _Graph>
template<typename Edge>
auto py:: GrAdaptor<_Graph>:: target(const Edge& e) const -> Vertex
Template parameters | |
---|---|
Edge | |
Parameters | |
e in | |
Returns | Vertex |
template<typename _Graph>
template<typename Edge>
auto py:: GrAdaptor<_Graph>:: end_points(const Edge& e) const
Template parameters | |
---|---|
Edge | |
Parameters | |
e in |