cimport numpy as np cpdef shortest_path(np.ndarray, int)