stormvogel.transformations.make_absorbing

Transformation: make a set of states absorbing.

Functions

make_absorbing(→ None)

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 Choices is replaced by a single EmptyAction {state: 1} self-loop via set_choices(). The model is mutated in-place.

Parameters:
Raises:

KeyError – If states is a label that does not exist in model.