atcoder/ac-library

Dinic algorithm seems to have an unnecessary variable

iensen opened this issue · 1 comments

std::vector<int> level(_n), iter(_n);

Why do you need the "iter" variable in maxflow.hpp? It seems it is only initialized to 0 and never changed.

for (int& i = iter[v]; i < int(g[v].size()); i++) {

We are using iter in this line