Find the unique possible path until an absorbing state
Find the unique possible path until an absorbing state
From a unique_paths object that shows all possible paths until absorption from an initial state, successful_transitions picks the path that finishes in to_state, if there is one. The initial state is the one defined in the argument from_state
to the function unique_paths. The process must have a tree-like structure.