CostMatrix IncludeEdge and ExcludeEdge methods. Sets matrix cells to infinity.