qmuntal / stateless

Go library for creating finite state machines
https://wikipedia.org/wiki/Finite-state_machine
BSD 2-Clause "Simplified" License
974 stars 53 forks source link

graph: deduplicate similar lines #84

Closed qmuntal closed 3 months ago

qmuntal commented 3 months ago

When exporting a state machine to DOT, deduplicate transitions that can be represented with the same line. That is, transitions whose source and destination states are the same. This makes the graph look much better as it avoids overlapping labels.