dimod.QuadraticModel.degree

QuadraticModel.degree(v: Hashable) int[source]

Return the degree of specified variable.

The degree is the number of interactions that contain a variable, v.