addIndex (name, index) {
    if (this.indexes[name]) {
      console.error('Index with name %s already exists.', name)
    }
    index.reset(this)
    this.indexes.set(name, index)
    return index
  }
Add a node index.

    @param {String} name
    @param {NodeIndex} index