powerset: Power set of Graphs of size 'n'

View source: R/powerset.R

powersetR Documentation

Power set of Graphs of size n

Description

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

Usage

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)

ergmito documentation built on July 9, 2023, 7:09 p.m.