dimod.QuadraticModel.num_interactions#

property QuadraticModel.num_interactions: int[source]#

Number of interactions in the model.

The complexity is linear in the number of variables.