generate_graphon function

Generate a Graphon Probability Matrix

Generate a Graphon Probability Matrix

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)

Arguments

  • 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 1 P = generate_graphon(100, 1)
  • Maintainer: Tianhai Zu
  • License: GPL-3
  • Last published: 2024-01-10

Useful links