def METHOD_NAME(self, event):
    super(NodeNavigationWidget, self).METHOD_NAME(event)
    if not self.selectedIndexes():
        return
    index = self.selectedIndexes()[0]
    rows = reversed(range(1, self.model().rowCount()))
    if index.row() == 0:
        rows = [r for r in rows if r > 0]
    else:
        rows = [r for r in rows if index.row() < r]
    if not rows:
        return
    rm_node_ids = [self.model().item(r, 0).toolTip() for r in rows]
    node_id = self.model().item(index.row(), 0).toolTip()
    [self.model().removeRow(r) for r in rows]
    self.navigation_changed.emit(node_id, rm_node_ids)