Find all arrays linked to an array in a given direction
findDirectChains(array, array.list, direction = c("before", "after"))
The array list with all linked arrays.
The array for which to find peers
An array list
The direction in which to expand the chain ("before" or "after")