|
Py2Cpp 1.6.3; VERSION ${PROJECT_VERSION}
|
Graph adapter for Boost Graph Library integration. More...
#include <nx2bgl.hpp>


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 Member Functions | |
| GrAdaptor ()=delete | |
| Default constructor (deleted) | |
| GrAdaptor (_Graph &&gra) noexcept | |
| Construct a new graph adaptor object. | |
| auto | number_of_nodes () const |
| Get the number of vertices in the graph. | |
| auto | number_of_edges () const |
| Get the number of edges in the graph. | |
| auto | edges () const -> EdgeView< _Graph > |
| Get an edge view for the graph. | |
| auto | neighbors (Vertex v) const -> AtlasView< Vertex, _Graph > |
| Get neighbors of a vertex. | |
| auto | add_edge (int u, int v) |
| Add an edge between two vertices. | |
| template<typename Edge > | |
| auto | source (const Edge &e) const -> Vertex |
| Get the source vertex of an edge. | |
| template<typename Edge > | |
| auto | target (const Edge &e) const -> Vertex |
| Get the target vertex of an edge. | |
| template<typename Edge > | |
| auto | end_points (const Edge &e) const |
| Get the source and target vertices of an edge. | |
Public Member Functions inherited from py::VertexView< _Graph > | |
| VertexView (_Graph &&gra) noexcept | |
| Construct a new Vertex View object. | |
| auto | begin () const |
| Get iterator to the beginning of vertices. | |
| auto | end () const |
| Get iterator to the end of vertices. | |
| auto | cbegin () const |
| Get const iterator to the beginning of vertices. | |
| auto | cend () const |
| Get const iterator to the end of vertices. | |
Static Public Member Functions | |
| static auto | null_vertex () -> Vertex |
| Get the null vertex descriptor. | |
Graph adapter for Boost Graph Library integration.
Provides a unified interface for working with BGL graphs, combining vertex and edge view functionality with additional graph operations.
| _Graph | The Boost Graph Library graph type |
| using py::GrAdaptor< _Graph >::edge_t = typename boost::graph_traits<_Graph>::edge_descriptor |
| using py::GrAdaptor< _Graph >::node_t = Vertex |
| using py::GrAdaptor< _Graph >::Vertex = typename boost::graph_traits<_Graph>::vertex_descriptor |
|
delete |
Default constructor (deleted)
Graph adaptor cannot be default constructed.
|
inlineexplicitnoexcept |
Construct a new graph adaptor object.
Creates a graph adaptor by moving an existing graph into this wrapper.
| [in] | gra | The graph to wrap (moved into this GrAdaptor) |
|
inline |
Add an edge between two vertices.
| [in] | u | Source vertex index |
| [in] | v | Target vertex index |
|
inline |
Get an edge view for the graph.
Returns an iterable view of all edges in the graph.
|
inline |
Get the source and target vertices of an edge.
| Edge | The edge descriptor type |
| [in] | e | The edge |
|
inline |
Get neighbors of a vertex.
Returns an iterable view of edges adjacent to the specified vertex.
| [in] | v | The vertex to get neighbors for |
|
inlinestatic |
Get the null vertex descriptor.
Returns the special null vertex value used by the graph.
|
inline |
Get the number of edges in the graph.
|
inline |
Get the number of vertices in the graph.
|
inline |
Get the source vertex of an edge.
Returns the source (origin) vertex of the specified edge.
| Edge | The edge descriptor type |
| [in] | e | The edge to get the source of |
|
inline |
Get the target vertex of an edge.
Returns the target (destination) vertex of the specified edge.
| Edge | The edge descriptor type |
| [in] | e | The edge to get the target of |