Trajectory Encoding Temporal Graph Networks