dimod.binary.BinaryQuadraticModel.reduce_neighborhood

BinaryQuadraticModel.reduce_neighborhood(v: Hashable, function: Callable, initializer: Optional[Union[int, float, numpy.number]] = None) Any[source]

Apply function of two arguments cumulatively to the quadratic biases associated with a single variable.