establishment.game | R Documentation |
establishment.game()
was renamed to sample_traits()
to create a more
consistent API.
establishment.game(
nodes,
types,
k = 1,
type.dist = rep(1, types),
pref.matrix = matrix(1, types, types),
directed = FALSE
)
nodes |
The number of vertices in the graph. |
types |
The number of different vertex types. |
k |
The number of trials per time step, see details below. |
type.dist |
The distribution of the vertex types. This is assumed to be stationary in time. |
pref.matrix |
A matrix giving the preferences of the given vertex types. These should be probabilities, i.e. numbers between zero and one. |
directed |
Logical constant, whether to generate directed graphs. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.