The StateTransitionManager.prepare_graphs method returns a structure that is not transparent and prone to errors once the user modifies it and plugs into find_solutions. (Modification is actually the reason why it is returned separately first, see Quickstart 1.2.
The
StateTransitionManager.prepare_graphs
method returns a structure that is not transparent and prone to errors once the user modifies it and plugs intofind_solutions
. (Modification is actually the reason why it is returned separately first, see Quickstart 1.2.The type hints that we use for these functions already indicate that some proper class structure would be better here: https://github.com/ComPWA/expertsystem/blob/22fb207f8ee1e2d409ef31734f4839ae12778819/expertsystem/ui/_system_control.py#L37-L39