updateAllPos() {
    // Get only the connected nodes by removing the client node
    const nodes = this.nodes;

    const divisions = 360/nodes.length;

    /**
     * If only one 1 node is present in the network,
     * then it must be placed at the centre of the canvas
     */
    if (nodes.length == 1) {
      anime({
        targets: nodes[0],
        cx: 0,
        cy: 0,
      });
      return;
    }

    nodes.forEach((node, i) => {
      // Calculate the angle that line makes
      const angle = divisions*(i+1)*Math.PI/180;
      const r = 100;

      anime({
        targets: node,
        cx: r * Math.cos(angle),
        cy: r * Math.sin(angle),
      });
    });
  }
Updates the positions of all the connected nodes in the graph