From b085add97362764ee8fb54c8f97d0ecb3ae150d2 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Mon, 20 Mar 2017 15:28:47 +0000 Subject: [PATCH] Integrate internal cell scan into customizer --- include/customizer/cell_customizer.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/customizer/cell_customizer.hpp b/include/customizer/cell_customizer.hpp index 99eafa71d..5bf296ec3 100644 --- a/include/customizer/cell_customizer.hpp +++ b/include/customizer/cell_customizer.hpp @@ -116,12 +116,11 @@ class CellCustomizer } // Relax base graph edges if a sub-cell border edge - for (auto edge : graph.GetAdjacentEdgeRange(node)) + for (auto edge : graph.GetInternalEdgeRange(level, node)) { const NodeID to = graph.GetTarget(edge); const auto &data = graph.GetEdgeData(edge); - if (data.forward && partition.GetCell(level, to) == id && - (first_level || + if (data.forward && (first_level || partition.GetCell(level - 1, node) != partition.GetCell(level - 1, to))) { const EdgeWeight to_weight = data.weight + weight;