pruned-landmark-labeling icon indicating copy to clipboard operation
pruned-landmark-labeling copied to clipboard

Extracting the root vertex when consulting the index

Open mhnamaki opened this issue 7 years ago • 0 comments

Dear Takuya Akiba, I'm a fan of pruned-landmark-labeling since it can really execute on large graphs and provide fast and exact querying distances.

Recently, for one of my project, I had to modify the code to satisfy my new requirements. However, in "QueryDistance" function and at the following line, I need to know what is the root node (u) we ask the distance between s,t from. int td = idx_v.bpspt_d[i] + idx_w.bpspt_d[i];

My question is that, how can I extract this u : \delta = d_G(s,u) + d_G(u,t). In a higher level, I do not want to allow distance_querying uses some of the dummy nodes that I have added to the graph.

I appreciate any help on this. Thanks :).

mhnamaki avatar Feb 08 '18 20:02 mhnamaki