EdgeInitializer< E > Struct Template Reference
Used in the Graph constructors for uniform initialization. More...
#include <Edge.hh>
Public Member Functions | |
EdgeInitializer (const VertexId_P &_vertices, const E &_data=E(), const double _weight=1) | |
Constructor. | |
Public Attributes | |
E | data |
User data. | |
VertexId_P | vertices |
IDs of the vertices. | |
double | weight = 1 |
The weight (cost) of the edge. | |
Detailed Description
template<typename E>
struct gz::math::graph::EdgeInitializer< E >
struct gz::math::graph::EdgeInitializer< E >
Used in the Graph constructors for uniform initialization.
Constructor & Destructor Documentation
◆ EdgeInitializer()
template<typename E >
|
inline |
Constructor.
- Parameters
-
[in] _vertices The vertices of the edge. [in] _data The data stored in the edge. [in] _weight The weight (cost) of the edge.
Member Data Documentation
◆ data
template<typename E >
E data |
User data.
◆ vertices
template<typename E >
VertexId_P vertices |
IDs of the vertices.
◆ weight
template<typename E >
double weight = 1 |
The weight (cost) of the edge.
The documentation for this struct was generated from the following file: