powered by
n
Generates the set of all possible binary networks of size n.
powerset(n, directed = TRUE, force = FALSE, chunk_size = 2e+05)
Integer. Number of edges.
Logical scalar. Whether to generate the power set of directed or undirected graphs,
Logical scalar. When TRUE it generates the power set for n>5, otherwise it returns with error.
TRUE
n>5
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.
chunk_size
powerset(2) powerset(4, directed = FALSE)
Run the code above in your browser using DataLab