From 096d1ce5f4d4e609614c3795fb22265abb692408 Mon Sep 17 00:00:00 2001 From: gvolfing Date: Wed, 8 Feb 2023 12:57:21 +0100 Subject: [PATCH] Invert boolean logic when checking for unique edges --- src/query/v2/plan/operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/v2/plan/operator.cpp b/src/query/v2/plan/operator.cpp index 4337add0d..73de9ee28 100644 --- a/src/query/v2/plan/operator.cpp +++ b/src/query/v2/plan/operator.cpp @@ -1341,7 +1341,7 @@ bool IsExpansionOk(Frame &frame, const Symbol &expand_symbol, const std::vector< return std::ranges::all_of(previous_symbols, [&frame, &expand_value = frame[expand_symbol]](const auto &previous_symbol) { const auto &previous_value = frame[previous_symbol]; - return ContainsSameEdge(previous_value, expand_value); + return !ContainsSameEdge(previous_value, expand_value); }); }