CIM.isIM

CIM.isIM()
Returns:

True if there is no conditioning variable (parent) in the CIM.

Return type:

bool

Example

import pyagrum as gum
import pyagrum.ctbn as ct

ctbn = ct.CTBN()
ctbn.add(gum.LabelizedVariable("A", "A", ["a0", "a1"]))
ctbn.add(gum.LabelizedVariable("B", "B", ["b0", "b1"]))
ctbn.addArc("A", "B")
ctbn.CIM("A").isIM()
# True
ctbn.CIM("B").isIM()  # conditioned by A
# False

Class

CIM