addRing(ring) {
    ring.id = this.ringIdCounter++;
    this.rings.push(ring);
    return ring.id;
  }
Add a ring to this representation of a molecule.

@param {Ring} ring A new ring.
@returns {Number} The ring id of the new ring.