Changing graph to use Vertex class

This commit is contained in:
2022-02-26 06:19:08 -06:00
parent e4d094d796
commit b604b1d3cd
6 changed files with 57 additions and 19 deletions

View File

@@ -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() {