Definition. Path in a directed graph [00JF]

Let {\mathopen {}\left (A,R\right )\mathclose {}} be a directed graph. For s,t:A, a path of length n: \mathbb {N} in R with source s and target t is a tuple {\mathopen {}\left (a_0,\ldots ,a_n\right )\mathclose {}}:A^{n+1} such that a_0=s, a_n=t, and a_i\mathrel {R}a_{i+1} for all 0\leq i <n.