powered by
mst
mst(D)
X <- runif(10,0,1) Y <- runif(10,0,1) D <- dist(cbind(X,Y)) mst(as.matrix(D))
Run the code above in your browser using DataLab