source: branches/localSpectral/src/clustering/VertexScoreComparator.java

Last change on this file was 27, checked in by toshi, 14 years ago

creato il branch local spectral

File size: 347 bytes
RevLine 
[27]1
2package clustering;
3
4import java.util.Comparator;
5
6public class VertexScoreComparator implements Comparator<VertexScore> {
7
8    public int compare(VertexScore t, VertexScore t1) {
9        if(t.getScore() > t1.getScore())
10            return -1;
11         if(t.getScore() < t1.getScore())
12             return 1;
13       
14         return 0;
15    }
16
17}
Note: See TracBrowser for help on using the repository browser.