Learn R Programming

graphonmix (version 0.0.1.0)

empirical_graphon: Computes empirical graphon from graph

Description

Computes empirical graphon given a graph

Usage

empirical_graphon(gr, n = NULL)

Value

The empirical graphon

Arguments

gr

A graph

n

Dimension of the graphon matrix

Examples

Run this code
library(igraph)
gr <- sample_gnp(1000, p=0.2)
emp <-  empirical_graphon(gr, n = 100)

Run the code above in your browser using DataLab