Some nodes of a directed graph are blocked. Find the shortest path, in edges, from A to B that never enters a blocked node.
Some nodes of a directed graph are blocked. Find the shortest path, in edges, from A to B that never enters a blocked node.
The discussion opens with the full question.