Skip to contents

Produces the possible permutations of a set of nodes

Usage

perm(max = rep(1, 2))

Arguments

max

A vector of integers. The maximum value of an integer value starting at 0. Defaults to 1. The number of permutation is defined by max's length

Value

A matrix of permutations

Examples

# \donttest{
CausalQueries:::perm(3)
#>    
#> 1 0
#> 2 1
#> 3 2
#> 4 3
# }