A compact representation for trips over networks built on self-indexes