Commit 01ddad4f authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in similarity() when graphs have a different number of vertices

parent 800ab682
......@@ -127,7 +127,7 @@ struct get_similarity_fast
size_t ss = 0;
int i, N = lmap1.size();
int64_t i, N = std::min(lmap1.size(), lmap2.size());
#pragma omp parallel for default(shared) private(i) schedule(runtime) \
reduction(+:ss) if (N > 100)
for (i = 0; i < N; ++i)
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