I searched but there are very complex Ai systems i just need some basic ai path finding, Like.

Each dot, is an place, with a name, or number, and need to get the lowest combination possible to reach the same destination..
I was expecting some expert could writte a simple thing.
Whats the mechanism?