Power set of Graphs of size n
n
Generates the set of all possible binary networks of size n
.
powerset(n, directed = TRUE, force = FALSE, chunk_size = 2e+05)
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.powerset(2) powerset(4, directed = FALSE)