the number of modalities in the variable domain
int
Example
import pyagrum as gum n = gum.IntegerVariable("n", "n", [1, 3, 10]) n.domainSize() # 3
Class
IntegerVariable