Theorem 4.34 (Godsil). Assuming that:
where Wal(G) is the number of closed walks of length l from a in the path tree Ta(G) of G.