A graph is called walk regular if the number of closed walks starting from vertex $u$ of length $k$ does not depend on $u$. If $A$ is the adjacency matrix of the graph, this means that $A^k$ has equal diagonal values for every $k>0$.
I'm interested in a weaker condition, that there exists two vertices $u,v$ such that the number of closed walks of length $k$ is the same for $u$ and $v$. Are there results or references about this?
In other words, when does $[A^k]_{uu} = [A^k]_{vv}$ hold?
For example, it would be nice to have necessary/sufficient conditions for this property to hold. If there is a graph automorphism that maps $u\to v$ then certainly $u$ and $v$ have the same number of closed walks, though the existence of such an automorphism is not necessary (an example is the Folkman graph which is walk-regular but not vertex-transitive).
I'm aware that if the graph has $n$ vertices and $u,v$ have the same number of closed walks for $k=1,2,\ldots n-1$, then by Hamilton-Cayley's theorem it is true also for all $k\geq n$.
I'm asking in the case of a simple undirected graph, but if there are generalizations for directed and/or weighted graphs they're highly welcome.