Commit 9c3246a4 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_adjacency.hh: improve removal or last vertex

parent e30fbc4f
......@@ -1201,7 +1201,11 @@ void remove_vertex(Vertex v, adj_list<Vertex>& g)
g._edges.erase(g._edges.begin() + v);
size_t N = g._edges.size();
#pragma omp parallel for schedule(runtime) if (N > 100)
if (v == N)
#pragma omp parallel for schedule(runtime) if (N > 1000)
for (size_t i = 0; i < N; ++i)
for (auto& e : g._edges[i].second)
Supports Markdown
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