Extract method Pathfinder::computePathRanks().