• Get the shortest path to the first entry.

    Parameters

    • index: number

      The index to get a path for

    • Optionalprev: number[]

    Returns number[]