Skip to content

Commit

Permalink
removed another stable sort from llp
Browse files Browse the repository at this point in the history
  • Loading branch information
zommiommy committed Jan 14, 2025
1 parent c115477 commit fc74173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algo/llp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ pub fn layered_label_propagation<R: RandomAccessGraph + Sync>(
let perm = &mut update_perm;
perm.par_iter_mut().enumerate().for_each(|(i, x)| *x = i);
// Sort by label
perm.par_sort_by(|&a, &b| {
perm.par_sort_unstable_by(|&a, &b| {
label_store
.label(a as _)
.cmp(&label_store.label(b as _))
Expand Down

0 comments on commit fc74173

Please sign in to comment.