find_all_partitions: Function to enumerate all possible partitions for a given n

View source: R/functions_utility.R

find_all_partitionsR Documentation

Function to enumerate all possible partitions for a given n

Description

Function to enumerate all possible partitions for a given n

Usage

find_all_partitions(n)

Arguments

n

number of nodes

Value

matrix where each line corresponds to a possible partition

Examples

n <- 6
all_partitions <- find_all_partitions(n)


ERPM documentation built on May 29, 2024, 10:05 a.m.