preference.game() was renamed to sample_pref() to create a more
consistent API.
Arguments
- nodes
The number of vertices in the graphs.
- types
The number of different vertex types.
- type.dist
The distribution of the vertex types, a numeric vector of length ‘types’ containing non-negative numbers. The vector will be normed to obtain probabilities. The default
NULLgives a uniform distribution.- fixed.sizes
Fix the number of vertices with a given vertex type label. The
type.distargument gives the group sizes (i.e. number of vertices with the different labels) in this case.- pref.matrix
A square matrix giving the preferences of the vertex types. The matrix has ‘types’ rows and columns. When generating an undirected graph, it must be symmetric. The default
NULLsets all preferences to one.- directed
Logical, whether to create a directed graph.
- loops
Logical, whether self-loops are allowed in the graph.
