summaryrefslogtreecommitdiff
path: root/test/graph/pushRelabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/graph/pushRelabel.cpp')
-rw-r--r--test/graph/pushRelabel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/graph/pushRelabel.cpp b/test/graph/pushRelabel.cpp
index 00a73d1..ca50860 100644
--- a/test/graph/pushRelabel.cpp
+++ b/test/graph/pushRelabel.cpp
@@ -1,6 +1,6 @@
#include "../util.h"
-namespace dinic {
-#include <graph/dinicScaling.cpp>
+namespace dinitz {
+#include <graph/dinitzScaling.cpp>
}
namespace pushRelabel {
@@ -13,20 +13,20 @@ void stress_test() {
int n = Random::integer<int>(2, 30);
int m = Random::integer<int>(n-1, max<int>(n, min<int>(500, n*(n-1) / 2 + 1)));
- dinic::adj.assign(n, {});
+ dinitz::adj.assign(n, {});
pushRelabel::adj.assign(n, {});
Graph<NoData, true> g(n);
g.erdosRenyi(m);
g.forEdges([](int a, int b){
ll w = Random::integer<ll>(1, 1'000'000'000'000ll);
- dinic::addEdge(a, b, w);
+ dinitz::addEdge(a, b, w);
pushRelabel::addEdge(a, b, w);
});
ll got = pushRelabel::maxFlow(0, n - 1);
- ll expected = dinic::maxFlow(0, n - 1);
-
+ ll expected = dinitz::maxFlow(0, n - 1);
+
if (got != expected) cerr << "got: " << got << ", expected: " << expected << FAIL;
queries += n;
}