As suggested [here](https://github.com/qiao/PathFinding.js/issues/117#issuecomment-481342450), we could also limit the runtime by a maximum path length instead of just the number of iterations.
As suggested here, we could also limit the runtime by a maximum path length instead of just the number of iterations.