I have to solve a vehicle routing problem and I want to use or tools in python for that.
The problem is the map in which the routing should be done is not complete in a sense that not each node is connected to all other nodes by an edge.
From what I see in the documentation I have to create a distance matrix or distance callback but how do I encode the information of an edge not being present? Or do I have to calculate the shortest path in the map to the respective node and so fill the distance matrix with the distance of that calculated path.
All this seems as if there was some obvious solution to this I’m not seeing.