On-line computation of minimal and maximal length paths