powered by
Generates a graph given a dense graphon W.
sample_graphon(W, n)
A graph sampled from the graphon W with n nodes
A graphon given by a matrix
The number of nodes of the sampled graph
library(igraph) W <- matrix(0.2, nrow = 100, ncol = 100) gr <- sample_graphon(W, n= 100)
Run the code above in your browser using DataLab