[math-fun] all shortest paths & the "string machine"