i have a project that it find the shortest bakery in c# . i written a program that save vertex and edge and drowing when opening the program. bu i need a code that find the nearest bakery. please write the needing code below this.
i have this

vertex.id vertex.x, vertex.y
and edge its loaded this
                Edge edge = edges.ElementAt(i);// get verr


            please help me