I have array with X:Y coordinates(400k), and i have another array of values for each pair of X:Y. Then i plotted points on the map with their values(in attach). I need to create graph with these points and find the shortest path from one random point to another point. Are there any ways to solve this problem without using adjacency matrix? Or how can i get this matrix?