I read this as A* and Dijkstra's in O(m) and was expecting something very different.
I thought Om was a little-known language, possible something new and homebrewed.
Dijkstra's algorithm finds the shortest path in any graph. My guess is that its simplicity and universality is why it's being commonly "misused" on maps, where the "graph" is intrinsic.
Even such a simple rule as the triangle inequality, if it holds, improves Dijkstra's considerably[0].