--- MinCost.cpp +++ MinCost.cpp @@ -253,19 +253,19 @@ template void DualMinCost::SetLowerBound(NodeId i, CostType cmin) { - AddEdge(i, source, FLOW_INFTY, 0, -cmin); + DualMinCost::AddEdge(i, source, FLOW_INFTY, 0, -cmin); } template void DualMinCost::SetUpperBound(NodeId i, CostType cmax) { - AddEdge(source, i, FLOW_INFTY, 0, cmax); + DualMinCost::AddEdge(source, i, FLOW_INFTY, 0, cmax); } template void DualMinCost::AddConstraint(NodeId i, NodeId j, CostType cmax) { - AddEdge(i, j, FLOW_INFTY, 0, cmax); + DualMinCost::AddEdge(i, j, FLOW_INFTY, 0, cmax); } template