equals(vertex) {
    return this.id === vertex.id;
  }
Returns true if this vertex and the supplied vertex both have the same id, else returns false.

@param {Vertex} vertex The vertex to check.
@returns {Boolean} A boolean indicating whether or not the two vertices have the same id.