paper

Computing the k Nearest-Neighbors for all Vertices via Dijkstra

arXiv:1607.07818

Abstract

We are given a directed graph with vertices and edges, with positive weights on the edges, and a parameter . We show how to compute, for every vertex , its nearest-neighbors. The algorithm runs in time, and follows by a somewhat careful modification of Dijkstra's shortest path algorithm. This result is probably folklore, but we were unable to find a reference to it -- thus, this note.

Computing the k Nearest-Neighbors for all Vertices via Dijkstra · wovepaper