powered by
This function generates a graphon probability matrix based on a specified graphon type. Users can control the generation process through various parameters.
generate_graphon(size, graph_num = 1, sampling_on_u = TRUE, u_input = NULL)
A matrix of probabilities is returned.
An integer specifying the size of the network.
An integer (default is 1) indicating the graphon type to use. Acceptable values are from 1 to 6.
A logical value determining if uniform sampling should be used for 'u'. Defaults to TRUE. If FALSE, a regular sequence from 0 to 1 is used.
An optional numeric vector that provides specific values for 'u'. If NULL (default), 'u' is generated based on 'sampling_on_u'.
# Generate a graphon probability matrix of size 100 using graphon setting 1 P = generate_graphon(100, 1)
Run the code above in your browser using DataLab