From 60c14124167a9de9d813da3d71e54921cd8053d9 Mon Sep 17 00:00:00 2001 From: antoniofilipovic Date: Fri, 22 Jul 2022 16:55:27 +0200 Subject: [PATCH] add edges impl --- src/query/graph.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/query/graph.hpp b/src/query/graph.hpp index 4b54a29c4..0a6fe6e3d 100644 --- a/src/query/graph.hpp +++ b/src/query/graph.hpp @@ -60,8 +60,10 @@ class Graph { /** Expands the graph with the given path. */ void Expand(const Path &path) { const auto path_vertices_ = path.vertices(); + const auto path_edges_ = path.edges(); std::for_each(path_vertices_.begin(), path_vertices_.end(), [this](const VertexAccessor v) { vertices_.push_back(v); }); + std::for_each(path_edges_.begin(), path_edges_.end(), [this](const EdgeAccessor e) { edges_.push_back(e); }); } /** Move assign other, utils::MemoryResource of `this` is used. */