dimod.variables.Variables.count#

Variables.count(v)[source]#

Return the number of times v appears in the variables.

Because the variables are always unique, this will always return 1 or 0.