-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to #53 the neighborhood graph is not connected #83
Related to #53 the neighborhood graph is not connected #83
Conversation
{ | ||
if (!is_connected(begin, end, neighbors)) | ||
LoggingSingleton::instance().message_warning("The neighborhood graph is not connected."); | ||
LoggingSingleton::instance().message_warning("The neighborhood graph with " + std::to_string(k) + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind to use format
there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nice one, thanks.
@@ -190,10 +191,18 @@ Neighbors find_neighbors(NeighborsMethod method, const RandomAccessIterator& beg | |||
neighbors = find_neighbors_covertree_impl(begin, end, callback, k); | |||
#endif | |||
|
|||
if (check_connectivity) | |||
if (check_connectivity and !is_connected(begin, end, neighbors)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is usually &&
571029a
to
ac425b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
To get started :-)
There's a small include update in a unit test too.