diff --git a/common/include/villas/graph/directed.hpp b/common/include/villas/graph/directed.hpp index 01a955009..0f084a950 100644 --- a/common/include/villas/graph/directed.hpp +++ b/common/include/villas/graph/directed.hpp @@ -42,9 +42,6 @@ public: std::shared_ptr getVertex(VertexIdentifier vertexId) const { - if (vertexId >= vertices.size()) - throw std::invalid_argument("vertex doesn't exist"); - // Cannot use [] operator, because creates non-existing elements // at() will throw std::out_of_range if element does not exist return vertices.at(vertexId);