Skip to content

Commit

Permalink
correct assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosch committed May 27, 2024
1 parent 0bb2366 commit 32ea647
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kaminpar-shm/coarsening/sparsification/kNeighbourSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
//

#include "kNeighbourSampler.h"

#include <networkit/auxiliary/Random.hpp>

#include "kaminpar-common/random.h"

namespace kaminpar::shm::sparsification {
Expand Down Expand Up @@ -92,7 +90,7 @@ void kNeighbourSampler::make_sample_symmetric(const CSRGraph &g, StaticArray<Edg
NodeID v = g.edge_target(e);
if (u < v) {
EdgeID counter_edge = sorted_by_target_permutation[g.raw_nodes()[v] + edges_done[v]];
KASSERT(g.edge_target(counter_edge) == u, "Graph was not sorted", assert::always);
KASSERT(g.edge_target(counter_edge) == u, "incorrect counter_edge", assert::always);
EdgeWeight combined_sample = (sample[e] + sample[counter_edge]) / 2;
sample[e] = combined_sample;
sample[counter_edge] = combined_sample;
Expand Down

0 comments on commit 32ea647

Please sign in to comment.