pathlengths