pytransitions / transitions

A lightweight, object-oriented finite state machine implementation in Python with many extensions
MIT License
5.49k stars 524 forks source link

Active state not correctly set in `GraphMachine` #551

Closed aleneum closed 2 years ago

aleneum commented 2 years ago

Describe the bug Active states are probably not correctly set in GraphMachine and TransitionGraphSupport (I need to confirm this).

Minimal working example

As pointed out by @betaboon this code looks suspicious.

Expected behavior All active states of the diagram associated with the current model should be highlighted.

aleneum commented 2 years ago

Should be fixed.