We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915ce4e commit d173407Copy full SHA for d173407
src/Balance.php
@@ -47,7 +47,7 @@ public function isBalancedFlow()
47
// no need to check for each edge: flow <= capacity (setters already check that)
48
// check for each vertex: outflow-inflow = balance
49
foreach ($this->graph->getVertices() as $vertex) {
50
- if ($vertex->getFlow() === $vertex->getBalance()) {
+ if ($vertex->getFlow() !== $vertex->getBalance()) {
51
return false;
52
}
53
0 commit comments