use constexpr if
This commit is contained in:
parent
e1d6a10fc6
commit
e562d34639
@ -300,9 +300,8 @@ void relaxOutgoingEdges(const DataFacade<Algorithm> &facade,
|
|||||||
|
|
||||||
const auto level = getNodeQueryLevel(partition, heapNode.node, args...);
|
const auto level = getNodeQueryLevel(partition, heapNode.node, args...);
|
||||||
|
|
||||||
static constexpr auto IS_MAP_MATCHING = std::is_same_v<typename SearchEngineData<
|
static constexpr auto IS_MAP_MATCHING =
|
||||||
mld::Algorithm>::MapMatchingQueryHeap,
|
std::is_same_v<typename SearchEngineData<mld::Algorithm>::MapMatchingQueryHeap, Heap>;
|
||||||
Heap>;
|
|
||||||
|
|
||||||
// SearchEngineData<Algorithm>::MapMatchingQueryHeap
|
// SearchEngineData<Algorithm>::MapMatchingQueryHeap
|
||||||
if (level >= 1 && !heapNode.data.from_clique_arc)
|
if (level >= 1 && !heapNode.data.from_clique_arc)
|
||||||
@ -348,7 +347,8 @@ void relaxOutgoingEdges(const DataFacade<Algorithm> &facade,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
++destination;
|
++destination;
|
||||||
if (IS_MAP_MATCHING) {
|
if (IS_MAP_MATCHING)
|
||||||
|
{
|
||||||
++distance;
|
++distance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -393,7 +393,8 @@ void relaxOutgoingEdges(const DataFacade<Algorithm> &facade,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
++source;
|
++source;
|
||||||
if (IS_MAP_MATCHING) {
|
if (IS_MAP_MATCHING)
|
||||||
|
{
|
||||||
++distance;
|
++distance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user