Changing graph to use Vertex class
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
|
||||
|
||||
public class Vertex {
|
||||
private final SequenceType type;
|
||||
private final Integer vertexLabel;
|
||||
private final Integer sequence;
|
||||
private final Integer occupancy;
|
||||
|
||||
public Vertex(Integer vertexLabel, Integer sequence, Integer occupancy) {
|
||||
public Vertex(SequenceType type, Integer sequence, Integer occupancy, Integer vertexLabel) {
|
||||
this.type = type;
|
||||
this.vertexLabel = vertexLabel;
|
||||
this.sequence = sequence;
|
||||
this.occupancy = occupancy;
|
||||
}
|
||||
|
||||
public SequenceType getType() { return type; }
|
||||
|
||||
public Integer getVertexLabel() { return vertexLabel; }
|
||||
|
||||
public Integer getSequence() {
|
||||
|
||||
Reference in New Issue
Block a user