Instantiation.variable
- Instantiation.variable(*args)
- Parameters:
i (
int) – The index of the variable- Returns:
the variable at position i in the tuple.
- Return type:
- Raises:
NotFound – If the element cannot be found.
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)
print(i.variable(1))
# b:Labelized({0|1|2})
Class