stormvogel.transformations.make_absorbing¶
Transformation: make a set of states absorbing.
Functions¶
|
Make states absorbing by replacing their outgoing transitions with a self-loop. |
Module Contents¶
- stormvogel.transformations.make_absorbing.make_absorbing(model: stormvogel.model.model.Model, states: State | set[State] | str) None¶
Make states absorbing by replacing their outgoing transitions with a self-loop.
Each target state’s
Choicesis replaced by a singleEmptyAction → {state: 1}self-loop viaset_choices(). The model is mutated in-place.- Parameters:
model – The model to mutate.
states – A single
State, aset[State], or a label string resolved viaget_states_with_label().
- Raises:
KeyError – If states is a label that does not exist in model.