Asano, Tetsuo, et al. “Constant-Work-Space Algorithms for Shortest Paths in Trees and Simple Polygons”. Journal of Graph Algorithms and Applications, vol. 15, no. 5, Oct. 2011, pp. 569-86, doi:10.7155/jgaa.00240.