The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

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