isReachable

fun isReachable(from: Cell, to: Cell): Boolean(source)

True if to is reachable from from. Uses early-exit BFS; faster than to in reachableFrom(from) for large grids where the target is close.