find_all_partitions function

Function to enumerate all possible partitions for a given n

Function to enumerate all possible partitions for a given n

find_all_partitions(n)

Arguments

  • n: number of nodes

Returns

matrix where each line corresponds to a possible partition

Examples

n <- 6 all_partitions <- find_all_partitions(n)
  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10