diff --git a/include/contractor/contracted_edge_container.hpp b/include/contractor/contracted_edge_container.hpp index aa68859d5..01db370b2 100644 --- a/include/contractor/contracted_edge_container.hpp +++ b/include/contractor/contracted_edge_container.hpp @@ -114,9 +114,10 @@ struct ContractedEdgeContainer // enforce sorting for next merge step std::vector ordering(edges_size); std::iota(ordering.begin(), ordering.end(), 0); - tbb::parallel_sort(ordering.begin(), ordering.end(), [&](const auto lhs_idx, const auto rhs_idx) { - return mergeCompare(edges[lhs_idx], edges[rhs_idx]); - }); + tbb::parallel_sort( + ordering.begin(), ordering.end(), [&](const auto lhs_idx, const auto rhs_idx) { + return mergeCompare(edges[lhs_idx], edges[rhs_idx]); + }); auto permutation = util::orderingToPermutation(ordering); util::inplacePermutation(edges.begin(), edges.end(), permutation); diff --git a/include/util/permutation.hpp b/include/util/permutation.hpp index 3feee29c6..f558b1312 100644 --- a/include/util/permutation.hpp +++ b/include/util/permutation.hpp @@ -56,8 +56,6 @@ std::vector orderingToPermutation(const std::vector &ordering) return permutation; } - - } }