New mathematical study of rail-transit lines