# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1267689112 -3600
# Node ID 195511e0b8064180593e36496c957cc43e6a0d3c
# Parent ab21ca0937458102b5a722069cf2bec2f82d3433
Separate two types in NetworkSimplex (#353)
This patch undos the misleading effects of the renamings
in [f3bc4e9b5f3a].
diff --git a/lemon/network_simplex.h b/lemon/network_simplex.h
a
|
b
|
|
166 | 166 | typedef std::vector<int> IntVector; |
167 | 167 | typedef std::vector<Value> ValueVector; |
168 | 168 | typedef std::vector<Cost> CostVector; |
| 169 | typedef std::vector<char> CharVector; |
169 | 170 | typedef std::vector<char> BoolVector; |
170 | 171 | // Note: vector<char> is used instead of vector<bool> for efficiency reasons |
171 | 172 | |
… |
… |
|
215 | 216 | IntVector _last_succ; |
216 | 217 | IntVector _dirty_revs; |
217 | 218 | BoolVector _forward; |
218 | | BoolVector _state; |
| 219 | CharVector _state; |
219 | 220 | int _root; |
220 | 221 | |
221 | 222 | // Temporary data used in the current pivot iteration |
… |
… |
|
246 | 247 | const IntVector &_source; |
247 | 248 | const IntVector &_target; |
248 | 249 | const CostVector &_cost; |
249 | | const BoolVector &_state; |
| 250 | const CharVector &_state; |
250 | 251 | const CostVector &_pi; |
251 | 252 | int &_in_arc; |
252 | 253 | int _search_arc_num; |
… |
… |
|
298 | 299 | const IntVector &_source; |
299 | 300 | const IntVector &_target; |
300 | 301 | const CostVector &_cost; |
301 | | const BoolVector &_state; |
| 302 | const CharVector &_state; |
302 | 303 | const CostVector &_pi; |
303 | 304 | int &_in_arc; |
304 | 305 | int _search_arc_num; |
… |
… |
|
337 | 338 | const IntVector &_source; |
338 | 339 | const IntVector &_target; |
339 | 340 | const CostVector &_cost; |
340 | | const BoolVector &_state; |
| 341 | const CharVector &_state; |
341 | 342 | const CostVector &_pi; |
342 | 343 | int &_in_arc; |
343 | 344 | int _search_arc_num; |
… |
… |
|
410 | 411 | const IntVector &_source; |
411 | 412 | const IntVector &_target; |
412 | 413 | const CostVector &_cost; |
413 | | const BoolVector &_state; |
| 414 | const CharVector &_state; |
414 | 415 | const CostVector &_pi; |
415 | 416 | int &_in_arc; |
416 | 417 | int _search_arc_num; |
… |
… |
|
513 | 514 | const IntVector &_source; |
514 | 515 | const IntVector &_target; |
515 | 516 | const CostVector &_cost; |
516 | | const BoolVector &_state; |
| 517 | const CharVector &_state; |
517 | 518 | const CostVector &_pi; |
518 | 519 | int &_in_arc; |
519 | 520 | int _search_arc_num; |