removeNode(name) {
    const nodeIdx = this.nodes.findIndex(node => node.name === name);

    if (nodeIdx > -1) {
      const anim = anime({
        targets: this.nodes[nodeIdx],
        radius: 15,
      });

      // Remove the node after 1/10th of animation has completed
      setTimeout(() => {
        this.nodes.splice(nodeIdx, 1);
        this.updateAllPos();
      }, anim.duration / 10);
    }
  }
Removes a node from the graph
@param {String} name Identifier of the node