selectNodes(selection, highlightEdges = true) {
    if (!selection || selection.length === undefined)
      throw "Selection must be an array with ids";

    this.setSelection({ nodes: selection }, { highlightEdges: highlightEdges });
  }
select zero or more nodes with the option to highlight edges
@param {number[] | string[]} selection     An array with the ids of the
                                           selected nodes.
@param {boolean} [highlightEdges]