The definition of maximum_path is shown as identical to that of minimum_path. It looks like both uses of min should be replaced with max.
The definition of maximum_path is shown as identical to that of minimum_path. It looks like both uses of min should be replaced with max.