constructor(startVertex, endVertex, weight = 0) {
    this.startVertex = startVertex;
    this.endVertex = endVertex;
    this.weight = weight;
  }
@param {GraphVertex} startVertex
@param {GraphVertex} endVertex
@param {number} [weight=1]