Instantiation.erase
- Instantiation.erase(*args)
- Parameters:
v (
pyagrum.DiscreteVariable) – The variable to be removed from this Instantiation.- Raises:
NotFound – If v does not belong to this Instantiation.
- Return type:
None
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.erase(a)
print(i)
# <b:0>
Class