State diagram
Overview​
State diagrams are used in computer science to describe how a system behaves. These diagrams show that a system has a limited number of states, which can either be literally true or a helpful simplification.
Code​
---
title: Simple sample
---
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]