Skip to content

Commit f6dc2eb

Browse files
committed
add note about precomputing knn index
1 parent 26c90f1 commit f6dc2eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ G10 = knngraph(neighbors, 10);
4646
% create 4-nearest neighbor graph without recomputing the knn search
4747
G4 = knngraph(neighbors, 4);
4848
```
49+
Since computing the knn index is the most expensive operation, precomputing it can save time if you need to build multiple graphs.
4950

5051
For more detailed documentation and usage, see each function's help text.
5152

0 commit comments

Comments
 (0)