add Transition_diagram