"So obviously, any path including a loop would not have the least cost, and would thus be discarded." . . . .