The qualitative trajectory calculus on networks