Convert a data matrix to a KNN graph or epsilon graph
Description
These functions are designed to convert data sets or distance matrices to graphs.
Usage
1 2 
Arguments
x 
the data matrix, if 
k 
the number of neighbors for a knn graph 
eps 
size of fixed radius 
weighted 
if TRUE the graph will be weighted. Note if TRUE use

dist 
when dist=TRUE then x is a distance matrix 
... 
Extra parameters for the daisy(...) method 
Details
The daisy function in cluster library is used primarily due to its speed and reliability.
Value
g 
A graph made from data x or distance matrix as input. 
Note
This command relies on the cluster library
Author(s)
Mark Culp
References
M. Culp (2011). spa: A SemiSupervised R Package for SemiParametric GraphBased Estimation. Journal of Statistical Software, 40(10), 129. URL http://www.jstatsoft.org/v40/i10/.
See Also
spa
knnGraph
epsGraph
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.