Skip to contents

Scales a graphon to an nxn matrix suitable for large adjacency matrices

Usage

scale_graphon(W, n)

Arguments

W

A graphon given as a symmetric square matrix

n

The dimension of the output matrix

Value

Scaled nxn graphon

Examples

library(igraph)
gr <- sample_gnp(1000, p=0.2)
adj <- as_adjacency_matrix(gr)
W <- scale_graphon(adj, 100)