This is more about how to check that $(i,j)$ is unreachable.
First of all, all matrices of the form $A^k$ lie in the linear span $\langle I,A,\dots,A^{n-1}\rangle$ by Cayley--Hamilton; hence, for $i\neq j$, it suffices to check whether the position $(i,j)$ in $A,A^2,\dots,A^{n-1}$ vanishes. For $i=j$, we also nees to check that the constant term of the characteristic polynomial (i.e., $|A|$) is zero, which guarantees that $I$ is never used; otherwise, even if the position vanishes at $A,A^2,\dots,A^{n-1}$, it will not vanish at $A^n$.
Another approach is to say that the condition reads that $A^ke_j$ has zero $i$th coordinate, for each $k$. This means that the cyclic subspace generated by $Ae_j$ lies completely in $V_i=\langle e_1,e_2,\dots,e_{i-1}, e_{i+1},\dots,e_n\rangle$. If $Ae_j=r_1+\dots+r_t$ is the decomposition of $Ae_j$ into the sum of root vectors (with distinct eigenvalues, over some algebraic extension of $\mathbb F$), then that cyclic subspace is the direct sum of the cyclic subspaces generated by the $r_i$. So it suffices to check that each such subspace lies in $V_i$. That may occasionally happen to be faster (or more plausible from the theoretical point of view).
I doubt that much more can be said about this.