dimod.variables.Variables._relabel#

Variables._relabel(mapping)[source]#

Relabel the variables in-place.

Parameters:

mapping (dict[Variable, Variable]) – Mapping from current variable labels to new, as a dict. If an incomplete mapping is specified, unmapped variables keep their current labels.

Caution

This method is semi-public. It is intended to be used by classes that have Variables as an attribute, not by the the user.