From cea353aa7f078f06480ca0a66a79f519792870b6 Mon Sep 17 00:00:00 2001 From: Daniel Krebs Date: Tue, 15 May 2018 13:13:15 +0200 Subject: [PATCH] directed-graph: add getters for vertices of an edge --- fpga/include/villas/directed_graph.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fpga/include/villas/directed_graph.hpp b/fpga/include/villas/directed_graph.hpp index 48899a606..0af3abf36 100644 --- a/fpga/include/villas/directed_graph.hpp +++ b/fpga/include/villas/directed_graph.hpp @@ -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;