Title: The State Transition Diagram with Path Priority and its applications