pathToIndex

fun pathToIndex(path: List<Int>): Int

Returns the index of given path.