source:
branches/localSpectral/src/clustering/VertexScoreComparator.java
@
33
Last change on this file since 33 was 27, checked in by , 14 years ago | |
---|---|
File size: 347 bytes |
Line | |
---|---|
1 | |
2 | package clustering; |
3 | |
4 | import java.util.Comparator; |
5 | |
6 | public 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.