Skip to content

Commit

Permalink
better fix of the compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Jan 30, 2025
1 parent 481ab04 commit 1b397b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cpp/src/community/k_truss_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,9 @@ struct extract_low_to_high_degree_edges_from_endpoints_t {
if (src < dst /* tie-breaking using vertex ID */) {
return cuda::std::optional<thrust::tuple<vertex_t, vertex_t, edge_t>>{
thrust::make_tuple(src, dst, count[idx])};
} else if (src > dst /* tie-breaking using vertex ID */) {
} else {
return cuda::std::optional<thrust::tuple<vertex_t, vertex_t, edge_t>>{
thrust::make_tuple(dst, src, count[idx])};
} else { // src == dst (self-loop)
assert(false); // should not be reached as we pre-excluded self-loops
return cuda::std::nullopt;
}
}
} else {
Expand Down

0 comments on commit 1b397b3

Please sign in to comment.