pub fn powerset(
items: &[String],
include_empty: bool,
include_singletons: bool,
include_full: bool,
max_size: Option<usize>,
) -> Vec<Vec<String>>Expand description
All subsets of items, with XGI’s option flags.
XGI parity: xgi.powerset (utils/utilities.py:97-151).
include_empty overrides include_singletons when true; max_size caps the
largest subset returned. Order is by ascending size, then lexicographic-by-index.
Flag order differs from XGI. Python’s positional signature is
powerset(iterable, include_empty, include_full, include_singletons, max_size); this
Rust signature is (items, include_empty, include_singletons, include_full, max_size)
— include_full and include_singletons are swapped. A future PyO3 binding that
mirrors Python’s positional call order must remap these two arguments, not pass them
straight through.