Topological Sort - Find Eventual Safe States
Suppose the problem is extended so that edges have probabilities representing transition likelihoods, and you want to find nodes that eventually reach terminal states with probability 1. Which approach best adapts to this variant?
