#' Compute the connected components of a graph
#'
#' @param x sg-object
#' @param verbose print info
#' @param sym force symmetry of edges
#'
#' @export
spatcluster <- function(x, verbose = FALSE, sym = FALSE){
if(sym) x<-sg2sym(x)
clusters<- spatcluster_c(x$edges, verbose)
as.sgc(clusters, x$type, x$parameters)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.