kgraph icon indicating copy to clipboard operation
kgraph copied to clipboard

how to update the radius in local join?

Open justdoit1990 opened this issue 6 years ago • 1 comments

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?

justdoit1990 avatar Sep 18 '18 07:09 justdoit1990

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.

gchen2101 avatar Sep 19 '18 03:09 gchen2101