... | ... |
@@ -450,22 +450,22 @@ |
450 | 450 |
return *_level; |
451 | 451 |
} |
452 | 452 |
|
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) |
|
456 |
Circulation& tolerance(const Tolerance& tolerance) { |
|
457 | 457 |
_tol = tolerance; |
458 | 458 |
return *this; |
459 | 459 |
} |
460 | 460 |
|
461 | 461 |
/// \brief Returns a const reference to the tolerance. |
462 | 462 |
/// |
463 | 463 |
/// Returns a const reference to the tolerance. |
464 | 464 |
const Tolerance& tolerance() const { |
465 |
return |
|
465 |
return _tol; |
|
466 | 466 |
} |
467 | 467 |
|
468 | 468 |
/// \name Execution Control |
469 | 469 |
/// The simplest way to execute the algorithm is to call \ref run().\n |
470 | 470 |
/// If you need more control on the initial solution or the execution, |
471 | 471 |
/// first you have to call one of the \ref init() functions, then |
... | ... |
@@ -371,22 +371,22 @@ |
371 | 371 |
return *_level; |
372 | 372 |
} |
373 | 373 |
|
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) |
|
377 |
Preflow& tolerance(const Tolerance& tolerance) { |
|
378 | 378 |
_tolerance = tolerance; |
379 | 379 |
return *this; |
380 | 380 |
} |
381 | 381 |
|
382 | 382 |
/// \brief Returns a const reference to the tolerance. |
383 | 383 |
/// |
384 | 384 |
/// Returns a const reference to the tolerance. |
385 | 385 |
const Tolerance& tolerance() const { |
386 |
return |
|
386 |
return _tolerance; |
|
387 | 387 |
} |
388 | 388 |
|
389 | 389 |
/// \name Execution Control |
390 | 390 |
/// The simplest way to execute the preflow algorithm is to use |
391 | 391 |
/// \ref run() or \ref runMinCut().\n |
392 | 392 |
/// If you need more control on the initial solution or the execution, |
0 comments (0 inline)