simulate_adjacency: Simulation an adjacency matrix

Description Usage Arguments Value

View source: R/simulation.R

Description

Simulation an adjacency matrix

Usage

1
2
3
4
5
6
7
8
simulate_adjacency(
  Z,
  n,
  alpha,
  directed,
  distribution = "bernoulli",
  no_isolated_node = FALSE
)

Arguments

Z

A vector of integer of size n, the label

n

An integer, the number of rows or columbns of the matrix

alpha

A max(Z)xmax(Z) matrix, the connectivity parameters

directed

A boolean, Is the network directed or not ?

distribution

The distribution of the indices: only "bernoulli"

no_isolated_node

A boolean, may row and column of adjacency matrices sum to 0

Value

A nxn adjacency matrix


Chabert-Liddell/MLVSBM documentation built on Sept. 22, 2020, 3:38 p.m.