dimod.bqm.adjarraybqm.AdjArrayBQM.shape

AdjArrayBQM.shape

A 2-tuple, the num_variables and num_interactions.