BayesNetFragment.empty

BayesNetFragment.empty()

Check if there are some variables in the model.

Returns:

True if there is no variable in the model.

Return type:

bool

Example

import pyagrum as gum

bn = gum.fastBN("A->B")
fragment = gum.BayesNetFragment(bn)
fragment.empty()
# True
fragment.installNode("A")
fragment.empty()
# False

Class

BayesNetFragment