4\5 transition rule are changed.

it should be allowed multiple incoming states and outgoing states for
transition