dimod.binary.BinaryQuadraticModel.relabel_variables_as_integers

BinaryQuadraticModel.relabel_variables_as_integers(inplace=True)[source]

Relabel to consecutive integers the variables of a binary quadratic model.