Using up, down, left and right keywords we can force the Arrow Direction between states.
arrowDirection.txt
@startuml [*] --> state1 state1 -right-> state2 state2 -down-> state3 state3 -left-> state4 state4 -up-> state5 state5 -up-> [*] @enduml
Above snippet generate below diagram.
This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here