Skip to content
Snippets Groups Projects
Commit 68420fe1 authored by p-hamann's avatar p-hamann
Browse files

Avoid redundant control variable

parent b6c66026
No related merge requests found
......@@ -16,10 +16,9 @@ indexed_edges std::map consists of key: pair<node_id, node_id> value: edge_id */
void edmonds_karp::index_edges() {
unsigned int num_nodes = g.num_nodes();
node_id u = 1;
unsigned int eid = 0;
for (unsigned int i = 0; i < num_nodes; i++) {
for (node_id u = 1; u <= num_nodes; u++) {
std::vector<node_id> neighbors = g.get_adjacency(u);
......@@ -35,7 +34,6 @@ void edmonds_karp::index_edges() {
eid++;
}
}
u++;
}
}
......
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