dimod.binary.BinaryQuadraticModel.num_interactions

property BinaryQuadraticModel.num_interactions: int[source]

Number of interactions in the model.

The complexity is linear in the number of variables.