dimod.binary.BinaryQuadraticModel.iter_neighborhood

BinaryQuadraticModel.iter_neighborhood(v: Hashable) Iterator[Tuple[Hashable, Union[int, float, numpy.number]]][source]

Iterate over the neighbors and quadratic biases of a variable.