//----------------------------------------------------------------------
#include <ANN/ANN.h> // ANN declarations
+#include <mingle/nearest_neighbor_graph_ann.h>
#include <vector>
int dim = 4; // dimension
}
}
-
-extern "C" void nearest_neighbor_graph_ann(int nPts, int dim, int k, double eps, double *x, int *nz0, int **irn0, int **jcn0, double **val0);
-
void nearest_neighbor_graph_ann(int nPts, int dim, int k, double eps, double *x, int *nz0, int **irn0, int **jcn0, double **val0){
/* Gives a nearest neighbor graph is a list of dim-dimendional points. The connectivity is in irn/jcn, and the distance in val.