I am trying to find all possible paths from a list of sequences in a 2D array. For example, in the 2D array:
test_array = np.array([[\'f\', \'l\', \'p\'],