# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1250583871 -7200
# Node ID 1f08e846df296135814062a8a9c4feb22c76d4ab
# Parent 257e91516e09d8d6be58236c587e3e0199770412
Bug fix in Preflow and Circulation (#307)
diff --git a/lemon/circulation.h b/lemon/circulation.h
a
|
b
|
|
453 | 453 | /// \brief Sets the tolerance used by algorithm. |
454 | 454 | /// |
455 | 455 | /// Sets the tolerance used by algorithm. |
456 | | Circulation& tolerance(const Tolerance& tolerance) const { |
| 456 | Circulation& tolerance(const Tolerance& tolerance) { |
457 | 457 | _tol = tolerance; |
458 | 458 | return *this; |
459 | 459 | } |
… |
… |
|
462 | 462 | /// |
463 | 463 | /// Returns a const reference to the tolerance. |
464 | 464 | const Tolerance& tolerance() const { |
465 | | return tolerance; |
| 465 | return _tol; |
466 | 466 | } |
467 | 467 | |
468 | 468 | /// \name Execution Control |
diff --git a/lemon/preflow.h b/lemon/preflow.h
a
|
b
|
|
374 | 374 | /// \brief Sets the tolerance used by algorithm. |
375 | 375 | /// |
376 | 376 | /// Sets the tolerance used by algorithm. |
377 | | Preflow& tolerance(const Tolerance& tolerance) const { |
| 377 | Preflow& tolerance(const Tolerance& tolerance) { |
378 | 378 | _tolerance = tolerance; |
379 | 379 | return *this; |
380 | 380 | } |
… |
… |
|
383 | 383 | /// |
384 | 384 | /// Returns a const reference to the tolerance. |
385 | 385 | const Tolerance& tolerance() const { |
386 | | return tolerance; |
| 386 | return _tolerance; |
387 | 387 | } |
388 | 388 | |
389 | 389 | /// \name Execution Control |