Return the degree of a variable.
The degree is the number of interactions that contain v.
v
v – Variable in the binary quadratic model.