source:
branches/localSpectral/src/clustering/VertexScoreComparator.java
@
32
| Last change on this file since 32 was 27, checked in by , 15 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.
![(please configure the [header_logo] section in trac.ini)](/p/clust/chrome/site/your_project_logo.png)