The obstacle nodes can be any node between 1 to n( max vertices). If no path is possible then -1 otherwise the length between the source and destination.
find the shortest distance between the source node and destination node in an undirected weighted graph with obstacles
The obstacle nodes can be any node between 1 to n( max vertices). If no path is possible then -1 otherwise the length between the source and destination.