simulate_adjacency function

Simulation an adjacency matrix

Simulation an adjacency matrix

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 columns of the matrix
  • alpha: A max(Z)×max(Z)\max(Z)\times \max(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

Returns

A nxn adjacency matrix

  • Maintainer: Saint-Clair Chabert-Liddell
  • License: GPL-3
  • Last published: 2022-08-05