IntegerVariable.toFast

IntegerVariable.toFast()

Return the variable description in fast syntax (e.g. name{v1|v2|...}).

The name is written between single quotes if it would not be read back as is otherwise (see pyagrum.quoteFastName, and its warning about the saved files): 'X-ray'{1|3|5}.

Returns:

fast-syntax string representation

Return type:

str

Example

import pyagrum as gum

n = gum.IntegerVariable("n", "n", [1, 3, 10])
n.toFast()
# 'n{1|3|10}'

Class

IntegerVariable