combine transition labels for same state transitions