dimod.AdjDictBQM.remove_interaction¶
-
AdjDictBQM.
remove_interaction
(u, v)[source]¶ Remove the interaction between the specified variables.
- Parameters
u (hashable) – A variable in the binary quadratic model.
v (hashable) – A variable in the binary quadratic model.
- Returns
If there was an interaction to remove.
- Return type
- Raises
ValueError – If either
u
orv
is not a variable in the binary quadratic model.