gz/math/graph/Vertex.hh
VertexId Id() const
Get the vertex Id.
Definition: gz/math/graph/Vertex.hh:88
static const uint64_t MAX_UI64
64bit unsigned integer maximum value
Definition: gz/math/Helpers.hh:339
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
STL class.
A vertex of a graph. It stores user information, an optional name, and keeps an internal unique Id....
Definition: gz/math/graph/Vertex.hh:54
V & Data()
Get a mutable reference to the user information.
Definition: gz/math/graph/Vertex.hh:81
const std::string & Name() const
Get the vertex name.
Definition: gz/math/graph/Vertex.hh:95
static Vertex< V > NullVertex
An invalid vertex.
Definition: gz/math/graph/Vertex.hh:57
const V & Data() const
Retrieve the user information.
Definition: gz/math/graph/Vertex.hh:74
std::map< VertexId, std::reference_wrapper< const Vertex< V > >> VertexRef_M
Definition: gz/math/graph/Vertex.hh:146
Vertex(const std::string &_name, const V &_data=V(), const VertexId _id=kNullId)
Constructor.
Definition: gz/math/graph/Vertex.hh:63
static const VertexId kNullId
Represents an invalid Id.
Definition: gz/math/graph/Vertex.hh:48
bool Valid() const
Whether the vertex is considered valid or not (id==kNullId).
Definition: gz/math/graph/Vertex.hh:109
STL class.
STL class.
T endl(T... args)
friend std::ostream & operator<<(std::ostream &_out, const Vertex< V > &_v)
Stream insertion operator. The output uses DOT graph description language.
Definition: gz/math/graph/Vertex.hh:119
void SetName(const std::string &_name)
Set the vertex name.
Definition: gz/math/graph/Vertex.hh:102
uint64_t VertexId
The unique Id of each vertex.
Definition: gz/math/graph/Vertex.hh:41