lookUpDomId(i) {
    for (const a of this.vertices.values())
      if (a.id === i)
        return a.domId;
    return i;
  }
Function to lookup domId from id in the graph definition.

@param id - id of the node