public Edge(Vertex startPoint, Vertex endPoint) { this.startingVertexPoint = startPoint; this.endingVertexPoint = endPoint; this.weight = Battery.calculateWeightUnits(startPoint.getCell(), endPoint.getCell()); }