dimod.AdjVectorBQM.iter_neighbors

AdjVectorBQM.iter_neighbors(u)[source]

Iterate over neighbors of a variable in the binary quadratic model.

Yields

variable – The neighbors of u.