Skip to content
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

Merged

Conversation

iglesias
Copy link
Collaborator

@iglesias iglesias commented Apr 8, 2024

To get started :-)

There's a small include update in a unit test too.

@iglesias iglesias changed the title 53 the neighborhood graph is not connected #53 the neighborhood graph is not connected Apr 8, 2024
@iglesias iglesias changed the title #53 the neighborhood graph is not connected Related to #53 the neighborhood graph is not connected Apr 8, 2024
{
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) +
Copy link
Owner

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?

Copy link
Collaborator Author

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))
Copy link
Owner

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 &&

@iglesias iglesias force-pushed the 53-the-neighborhood-graph-is-not-connected branch from 571029a to ac425b3 Compare April 8, 2024 21:10
Copy link
Owner

@lisitsyn lisitsyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@iglesias iglesias merged commit a930e51 into lisitsyn:main Apr 10, 2024
4 of 6 checks passed
@iglesias iglesias deleted the 53-the-neighborhood-graph-is-not-connected branch April 12, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants