Instantiation.domainSize
- Instantiation.domainSize()
- Returns:
The product of the variable’s domain size in the Instantiation.
- Return type:
int
Example
import pyagrum as gum
a, b = gum.LabelizedVariable("a", "a", 2), gum.LabelizedVariable("b", "b", 3)
i = gum.Instantiation()
i.add(a)
i.add(b)
i.domainSize()
# 6
Class