Skip to contents

Generates a graph given a dense graphon W.

Usage

sample_graphon(W, n)

Arguments

W

A graphon given by a matrix

n

The number of nodes of the sampled graph

Value

A graph sampled from the graphon W with n nodes

Examples

library(igraph)
W <- matrix(0.2, nrow = 100, ncol = 100)
gr <- sample_graphon(W, n= 100)