highlightObject (objectToHighlight, force) {
    if (this.highlightedObject !== objectToHighlight || force) {
      // clear search string
      this.searchString = '';
      this.highlightedObject = objectToHighlight;
      this.highlightConnectedNodes(objectToHighlight);
      const nodeName = objectToHighlight ? objectToHighlight instanceof this.NodeClass && objectToHighlight.getName() : undefined;
      each(this.nodes, (node) => {
        node.getView().setHighlight(nodeName === node.getName());
      });
      const connectionName = objectToHighlight ? objectToHighlight instanceof this.ConnectionClass && objectToHighlight.getName() : undefined;
      each(this.connections, (connection) => {
        connection.getView().setHighlight(connectionName === connection.getName());
      });

      this.emit('objectHighlighted', objectToHighlight);
    }
  }
Highlight an object (node or connection) on the graph.

@param {object} objectToHighlight The graph object to attempt to highlight
@param {boolean} force Force an update of the highlighted node, even if it is already highlighted