Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
nearest_neighbor_graph.cpp File Reference
#include "config.h"
#include <sparse/general.h>
#include <sparse/SparseMatrix.h>
#include <mingle/nearest_neighbor_graph_ann.h>
#include <mingle/nearest_neighbor_graph.h>
#include <vector>
Include dependency graph for nearest_neighbor_graph.cpp:

Go to the source code of this file.

Functions

SparseMatrix nearest_neighbor_graph (int nPts, int num_neighbors, const std::vector< double > &x)
 

Function Documentation

◆ nearest_neighbor_graph()

SparseMatrix nearest_neighbor_graph ( int  nPts,
int  num_neighbors,
const std::vector< double > &  x 
)

Definition at line 19 of file nearest_neighbor_graph.cpp.

References A, MATRIX_TYPE_REAL, nearest_neighbor_graph_ann(), NULL, and SparseMatrix_from_coordinate_arrays().

Referenced by agglomerative_ink_bundling_internal(), and bundle().

Here is the call graph for this function:
Here is the caller graph for this function: