Graph clustering demo in R