summaryrefslogtreecommitdiff
path: root/impl
diff options
context:
space:
mode:
authorZancanaro; Carlo <czan8762@plang3.cs.usyd.edu.au>2012-11-21 01:43:43 +1100
committerZancanaro; Carlo <czan8762@plang3.cs.usyd.edu.au>2012-11-21 01:43:43 +1100
commit50f2130f18e86055892c870c14af5101feb568ff (patch)
treeca0bc8c6a088f1a69574429378d488d0c399c0ea /impl
parent7e101b9c4bff2f145338fdb5074c2402718e7fcc (diff)
Implementation stuff.
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