removeNode(node, callback) {
    let promise;
    const process = this.getNode(node.id);
    if (!process) {
      promise = Promise.reject(new Error(`Node ${node.id} not found`));
    } else {
      if (!process.component) {
        delete this.processes[node.id];
        return Promise.resolve();
      }
      promise = process.component.shutdown()
        .then(() => {
          delete this.processes[node.id];
          return Promise.resolve();
        });
    }
    if (callback) {
      deprecated('Providing a callback to Network.removeNode is deprecated, use Promises');
      promise.then(() => {
        callback(null);
      }, callback);
    }
    return promise;
  }
@param {import("fbp-graph/lib/Types").GraphNode} node
@param {ErrorableCallback} [callback]
@returns {Promise<void>}