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:
parent
218008955e
commit
cea353aa7f
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue