1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

directed-graph: add getters for vertices of an edge

This commit is contained in:
Daniel Krebs 2018-05-15 13:13:15 +02:00
parent 218008955e
commit cea353aa7f

View file

@ -58,6 +58,12 @@ public:
operator==(const Edge& other)
{ return this->id == other.id; }
Vertex::Identifier getVertexTo() const
{ return to; }
Vertex::Identifier getVertexFrom() const
{ return from; }
private:
Identifier id;
Vertex::Identifier from;