Add the missing path costs, include methods to maximize or minimize cost for cost