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

how to update the radius in local join? #25

Open
justdoit1990 opened this issue Sep 18, 2018 · 1 comment
Open

how to update the radius in local join? #25

justdoit1990 opened this issue Sep 18, 2018 · 1 comment

Comments

@justdoit1990
Copy link

I am reading the source code. But I have a question about the local join in KGraphConstruction class.
I don't understand the update progress of the radius of Nhood. In init(), the radius is set to numeric_limits::max(). And the size of nhood.pool is set to param.L. After the join process, the radius is updated to nhood.pool.back().dist. But if the neighbors can not fill the pool size(param.L), the radius would be set to 0. This is confusing. Can you please explain the updating of radius in the construction process of KGraphConstruction?

@gchen2101
Copy link

in the later part of init(), each node of pool (0~nhood.L) is initialized by
nn.dist = oracle(nn.id, n);
image

so, radius wouldn't be 0.
I'm learning too.

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

No branches or pull requests

2 participants