dimod.variables.Variables._relabel

Variables._relabel()[source]

Relabel the variables in-place.

Parameters

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

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