# NOT RUN {
## generate swiss-roll dataset of size 100
X <- aux.gensamples(n=100)
## two types of graph laplacians using 20% of neighbors
out1 <- do.lapeig(X,ndim=2,type=c("proportion",0.05),kernelscale=10) # weighted version
out2 <- do.lapeig(X,ndim=2,type=c("proportion",0.05),weighted=FALSE) # combinatorial
## Visualize
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,2))
plot(out1$Y, main="weighted")
plot(out2$Y, main="combinatorial")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab