powerset function

Power set of Graphs of size n

Power set of Graphs of size n

Generates the set of all possible binary networks of size n.

powerset(n, directed = TRUE, force = FALSE, chunk_size = 2e+05)

Arguments

  • n: Integer. Number of edges.
  • directed: Logical scalar. Whether to generate the power set of directed or undirected graphs,
  • force: Logical scalar. When TRUE it generates the power set for n>5, otherwise it returns with error.
  • chunk_size: Number of matrices to process at a time. If n = 5, then stack memory on the computer may overflow if chunk_size is relatively large.

Examples

powerset(2) powerset(4, directed = FALSE)
  • Maintainer: George Vega Yon
  • License: MIT + file LICENSE
  • Last published: 2023-06-14