The weight of a path is .