in src/dachshund/algorithms/cnm_communities.rs [32:48]
fn cmp(&self, other: &Self) -> Ordering {
if self.delta_ij < other.delta_ij {
Ordering::Less
} else if self.delta_ij > other.delta_ij {
Ordering::Greater
} else if self.i > other.i {
Ordering::Less
} else if self.i < other.i {
Ordering::Greater
} else if self.j > other.j {
Ordering::Less
} else if self.j < other.j {
Ordering::Greater
} else {
Ordering::Equal
}
}