Dear all,
I am sorry that I would have already done Nicolas did, thanks a lot Nicolas.
The way I can describe GIS for this group is that, for a GIS person, X and Y axis of graphs will be the longitude and latitude of the Earth. I hope this makes sense when it comes to finding the shortest path in the graph :)
Responding to Peter, I have calculated the distance differences. To prove it, I have calculated the total distance for of route derived by networkx and the same after making a minor modification in the route. The distance difference in the modified route is found to be less. (result is attached)
Note: Pls ignore the distance unit, bcs as I mentioned, it is the actual distance on Earth to travel through those locations in meters. Just wanted to prove that the altered path is better than the derived product.
In terms of increasing permutation, I tried but it didn't help.
I accept Dan Schult. This problem is complicated especially when the nodes are more. Brute force is the best option, in which all the possible routes will be measured and identify the best route. But it isn't practical for a large number of points.
I strongly believe that there will be smarter approaches. In fact, the derived products are near to perfection. It will be perfect and pretty well useful for many applications if this glitch can be identified and resolved.
Thanks all