Skip to content
Snippets Groups Projects
Commit 9914081e authored by Lukas Garbas's avatar Lukas Garbas
Browse files

Fixed overflow error

parent c9729923
No related merge requests found
......@@ -41,7 +41,7 @@ std::pair<int, node_id> edmonds_karp::bfs(std::vector<int> &resid_flow, std::vec
pred.clear();
pred.resize(g_.num_nodes() + 1, -1); // undiscovered nodes are marked with -1
std::vector<int> gain(g_.num_nodes(), 0);
std::vector<int> gain(g_.num_nodes() + 1, 0);
bool sink_reached = false;
node_id sink;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment