Finds the nearest principal graph node
find_nearest_vertex(
data_matrix,
target_points,
block_size = 50000,
process_targets_in_blocks = FALSE
)
the input matrix
the target points
the number of input matrix rows to process per block
whether to process the targets points in blocks instead