remove(ids) {
    const nodes = this.body.nodes;

    for (let i = 0; i < ids.length; i++) {
      const id = ids[i];
      delete nodes[id];
    }

    this.body.emitter.emit("_dataChanged");
  }
Remove existing nodes. If nodes do not exist, the method will just ignore it.
@param {number[] | string[]} ids
@private