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:
import vcsn lb = vcsn.context('lal_char(a-z), b') wb = vcsn.context('law_char(a-z), b')
lba = lb.expression('(ab)(cd)(ef)').derived_term() lba
Transposing a transposed automaton returns the original automaton.
lba == lba.transpose().transpose()
Of course labels and weights are transposed too when it applies.