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

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

ultimo commit

File size: 593 bytes
RevLine 
[27]1
2package clustering;
3
4public class VertexScore<V> {
5
6    private V vertex;
[36]7    private float score;
[27]8
[36]9    public VertexScore(V vertex, float score) {
[27]10        this.vertex = vertex;
11        this.score = score;
12    }
13
14    public double getScore() {
15        return score;
16    }
17
[36]18    public void setScore(float score) {
[27]19        this.score = score;
20    }
21
22    public V getVertex() {
23        return vertex;
24    }
25
26    public void setVertex(V vertex) {
27        this.vertex = vertex;
28    }
29
30    @Override
31    public String toString(){
32        return this.vertex.toString() + " " + score;
33    }
34
35   
36
37}
Note: See TracBrowser for help on using the repository browser.