powered by
scm is wrapper for ghype that allows to specify a soft-configuration model.
scm(graph, directed = NULL, selfloops = NULL, ...)
ghype object
either an adjacency matrix or an igraph graph
optional boolean, if not specified detected from graph
additional parameters passed to the ghype function
data("adj_karate") confmodel <- scm(graph = adj_karate, directed = FALSE, selfloops = FALSE)
Run the code above in your browser using DataLab