def METHOD_NAME(self, tx: 'BaseTransaction') -> None:
    """ Mark `tx` to have its neighbors skipped, i.e., they will not be added to be
    visited later. `tx` must be equal to the current yielded transaction.
    """
    self._ignore_neighbors = tx