| 3 | } |
| 4 | |
| 5 | void test1() { |
| 6 | int N = 20; |
| 7 | int MAX = 100000; |
| 8 | |
| 9 | flow_network mf(N); |
| 10 | ek::flow_network mf2(N); |
| 11 | |
| 12 | for(int i = 0; i < N; i++) { |
| 13 | for(int j = 0; j < N; j++) { |
| 14 | int cap = rng() % MAX + 1; |
| 15 | mf.add_edge(i, j, cap); |
| 16 | mf2.add_edge(i, j, cap); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | for(int i = 0; i < N; ++i) { |
| 21 | for(int j = 0; j < N; ++j) { |
| 22 | if (i != j) |
| 23 | assert_equal(mf2.max_flow(i, j), mf.max_flow(i, j)); |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void test2() { |
| 29 | int N = 20; |
no test coverage detected