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

Avoid multiple indexing of edges

parent 5634821e
Branches
1 merge request!7Incremental bfs
......@@ -4,6 +4,7 @@ graph::graph(std::vector<std::vector<unsigned int>> a) : nodes_(a.size()), adjac
}
void graph::index_edges() {
if (!indexed_edges_.empty()) return;
edge_id eid = 0;
for (node_id u = 1; u <= nodes_; 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