Here's a basic (naive) implementation for generating permutations
(arr: &[T])
source not stored for this graph (policy: none)