powered by
Class kgraph defines a kgraph object.
mat
a parase matrix object that contains the knn adjacent matrix
k
k used for constructing knn graph
file
file name that saves that knn graph
snn
knn is converted to snn graph if True
snn.prune
snn prunning. edges with weight less than snn.prune will be removed
# NOT RUN { data(demo.sp); demo.sub.sp = demo.sp[1:5,] # }
Run the code above in your browser using DataLab