summaryrefslogtreecommitdiff
path: root/impl
diff options
context:
space:
mode:
Diffstat (limited to 'impl')
-rw-r--r--impl/Operator.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/impl/Operator.hpp b/impl/Operator.hpp
index 4a573b8..0b08866 100644
--- a/impl/Operator.hpp
+++ b/impl/Operator.hpp
@@ -153,8 +153,8 @@ struct MinCostFlow : public Operator<Domain> {
ends[i] = arcs[i].second;
}
- _solver.LoadNet(supplies.size(), supplies.size(), // max nodes/arcs
- supplies.size(), supplies.size(), // current nodes/arcs
+ _solver.LoadNet(supplies.size(), arcs.size(), // max nodes/arcs
+ supplies.size(), arcs.size(), // current nodes/arcs
NULL, NULL, // arcs have inf cap, zero cost (to begin)
deficits, // deficits for each node
starts, ends); // start/end of each edge