# HG changeset patch # User Peter Kovacs # Date 1362091539 -3600 # Node ID 473c71baff72fa87fce601589e9ac07e88c3e98d # Parent 45befc97b1bcf5bc47d9ff0acf02316b1520cae5 Avoid usage of alternative operator (#177) diff -r 45befc97b1bc -r 473c71baff72 lemon/edmonds_karp.h --- a/lemon/edmonds_karp.h Thu Feb 28 23:44:35 2013 +0100 +++ b/lemon/edmonds_karp.h Thu Feb 28 23:45:39 2013 +0100 @@ -524,7 +524,7 @@ /// \pre Either \ref run() or \ref init() must be called before /// using this function. bool minCut(const Node& node) const { - return ((*_pred)[node] != INVALID) or node == _source; + return ((*_pred)[node] != INVALID) || node == _source; } /// \brief Gives back a minimum value cut.