Take the infinite family
Each complete graph is connected and has graph diameter one. If is its adjacency matrix, then
and direct multiplication gives the adjacency-matrix quadratic relation for a complete graph
Consequently
so , which are precisely the powers through , are linearly dependent for every .