Kernel: Python 3
automaton.transpose
Transpose the automaton, i.e., change the direction of all the arrows (i.e., change the direction of the transitions, and exchance initial and final states), and transpose their labels and weights.
Also known as:
reverse
Preconditions:
None
Properties:
involution
See also:
Examples
In [1]:
In [2]:
In [3]:
Transposing a transposed automaton returns the original automaton.
In [4]:
In [5]:
True
Of course labels and weights are transposed too when it applies.
In [6]:
In [7]: