dimod.binary.BinaryQuadraticModel.relabel_variables

BinaryQuadraticModel.relabel_variables(mapping, inplace=True)[source]

Relabel the variables of a binary quadratic model.