Cofnod E-bost: Extrema property of the k-ranking of directed paths and cycles