add getter/setter for potential
This commit is contained in:
@@ -74,4 +74,12 @@ public class Vertex implements Serializable, Comparable<Vertex> {
|
|||||||
public int compareTo(Vertex other) {
|
public int compareTo(Vertex other) {
|
||||||
return this.vertexLabel - other.getVertexLabel();
|
return this.vertexLabel - other.getVertexLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Double getPotential() {
|
||||||
|
return potential;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPotential(Double potential) {
|
||||||
|
this.potential = potential;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user