getNextInRing(vertices, ringId, previousVertexId) {
    let neighbours = this.getNeighbours();

    for (let i = 0; i < neighbours.length; i++) {
      if (ArrayHelper.contains(vertices[neighbours[i]].value.rings, {
        value: ringId
      }) && neighbours[i] != previousVertexId) {
        return neighbours[i];
      }
    }

    return null;
  }
Gets the next vertex in the ring in opposide direction to the supplied vertex id.

@param {Vertex[]} vertices The array of vertices for the current molecule.
@param {Number} ringId The id of the ring containing this vertex.
@param {Number} previousVertexId The id of the previous vertex. The next vertex will be opposite from the vertex with this id as seen from this vertex.
@returns {Number} The id of the next vertex in the ring.