dimod.variables.Variables.index#
- Variables.index(v, permissive=False)[source]#
Return the index of v.
- Parameters:
- Returns:
The index of the given variable.
- Return type:
- Raises:
ValueError – If the variable is present and
permissive
isFalse
.
Return the index of v.
The index of the given variable.
ValueError – If the variable is present and permissive
is
False
.