Rev | Line | |
---|
[33] | 1 | |
---|
| 2 | package clustering; |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | public class VertexString { |
---|
| 6 | |
---|
| 7 | String name; |
---|
| 8 | int colour; |
---|
| 9 | |
---|
| 10 | public VertexString(String name, int red_colour) { |
---|
| 11 | this.name = name; |
---|
| 12 | this.colour = red_colour; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | public String getName() { |
---|
| 16 | return name; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | public void setName(String name) { |
---|
| 20 | this.name = name; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | public int getColour() { |
---|
| 24 | return colour; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | public void setColour(int colour) { |
---|
| 28 | this.colour = colour; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | @Override |
---|
| 32 | public String toString(){ |
---|
| 33 | return this.name; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.