Generate non-cyclic paths

Description

From a set of n numbers, generate all possible paths starting from and ending on a given number.

Usage

1
generate_paths_noncyclic(ind, n, sample_paths = FALSE)

Arguments

ind

The starting dataset

n

The number of datasets.

sample_paths

boolean, If FALSE, all possible paths are generated. If TRUE one path per ending point is selected.

Value

A list of lists containing the paths.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.