Skip to content

isConnected()

Report whether the model can continue from a context.

The model is connected at a context when that context has at least one known transition at some order, so generation could carry on from it.

Parameters

Once an object compositemarkovmodel has been created, you can use the following function:

compositemarkovmodel.isConnected(context)
Parameter Type Default Description
context tuple required The context to check.

Returns

return connected

Value Type Description
connected bool True if the model has a transition for the context, False otherwise.