- n
The number of nodes in the network. Must be
a positive integer. This argument is required.
- k
(mixing matrix) The number of blocks in the blockmodel.
Use when you don't want to specify the mixing-matrix by hand.
When k is specified, the elements of B are drawn
randomly from a Uniform(0, 1) distribution.
This is subject to change, and may not be reproducible.
k defaults to NULL. You must specify either k
or B, but not both.
- B
(mixing matrix) A k by k matrix of block connection
probabilities. The probability that a node in block i connects
to a node in community j is Poisson(B[i, j]). Must be
a square matrix. matrix and Matrix objects are both
acceptable. If B is not symmetric, it will be
symmetrized via the update B := B + t(B) / 2. Defaults to NULL.
You must specify either k or B, but not both.
- ...
Arguments passed on to undirected_factor_model
expected_degree
If specified, the desired expected degree
of the graph. Specifying expected_degree simply rescales S
to achieve this. Defaults to NULL. Do not specify both
expected_degree and expected_density at the same time.
expected_density
If specified, the desired expected density
of the graph. Specifying expected_density simply rescales S
to achieve this. Defaults to NULL. Do not specify both
expected_degree and expected_density at the same time.
block_sizes
(block sizes) Number of nodes in each block,
as a vector of integers. Must match the dimensions of B, or k and
must sum to n. Defaults to NULL, in which case blocks are made
to be as balanced as possible. You can specify either pi or
block_sizes, but not both.
pi
(block sizes) Relative block
probabilities. Must be positive, but do not need to sum
to one, as they will be normalized internally.
Must match the dimensions of B or k. Defaults to NULL, in which
case the block_sizes argument will take precedence. Note that
you can specify either pi or block_sizes, but should not
specify both.
sort_nodes
Logical indicating whether or not to sort the nodes
so that they are grouped by block and by theta. Useful for plotting.
Defaults to TRUE. When TRUE, nodes are first sorted by block
membership, and then by degree-correction parameters within each block.
Additionally, pi is sorted in increasing order, and the columns
of the B matrix are permuted to match the new order of pi.
poisson_edges
Logical indicating whether or not
multiple edges are allowed to form between a pair of
nodes. Defaults to TRUE. When FALSE, sampling proceeds
as usual, and duplicate edges are removed afterwards. Further,
when FALSE, we assume that S specifies a desired between-factor
connection probability, and back-transform this S to the
appropriate Poisson intensity parameter to approximate Bernoulli
factor connection probabilities. See Section 2.3 of Rohe et al. (2017)
for some additional details.
allow_self_loops
Logical indicating whether or not
nodes should be allowed to form edges with themselves.
Defaults to TRUE. When FALSE, sampling proceeds allowing
self-loops, and these are then removed after the fact.