KNNGRAPH Create the k-nearest neighbors graph of a set of points. EDGES = knnGraph(NODES) Example nodes = rand(10, 2); edges = knnGraph(nodes); drawGraph(nodes, edges); See also graphs
Package: matgeom