Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
01ddad4f
Commit
01ddad4f
authored
Apr 07, 2015
by
Tiago Peixoto
Browse files
Fix bug in similarity() when graphs have a different number of vertices
parent
800ab682
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/topology/graph_similarity.hh
View file @
01ddad4f
...
...
@@ -127,7 +127,7 @@ struct get_similarity_fast
size_t
ss
=
0
;
int
i
,
N
=
lmap1
.
size
();
int
64_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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment