Last change
on this file since 30 was
27,
checked in by toshi, 14 years ago
|
creato il branch local spectral
|
File size:
596 bytes
|
Line | |
---|
1 | |
---|
2 | package clustering; |
---|
3 | |
---|
4 | public class VertexScore<V> { |
---|
5 | |
---|
6 | private V vertex; |
---|
7 | private double score; |
---|
8 | |
---|
9 | public VertexScore(V vertex, double score) { |
---|
10 | this.vertex = vertex; |
---|
11 | this.score = score; |
---|
12 | } |
---|
13 | |
---|
14 | public double getScore() { |
---|
15 | return score; |
---|
16 | } |
---|
17 | |
---|
18 | public void setScore(double score) { |
---|
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.