This function generates a graphon probability matrix based on a specified graphon type. Users can control the generation process through various parameters.
size: An integer specifying the size of the network.
graph_num: An integer (default is 1) indicating the graphon type to use. Acceptable values are from 1 to 6.
sampling_on_u: 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.
u_input: An optional numeric vector that provides specific values for 'u'. If NULL (default), 'u' is generated based on 'sampling_on_u'.
Returns
A matrix of probabilities is returned.
Examples
# Generate a graphon probability matrix of size 100 using graphon setting 1P = generate_graphon(100,1)