dimod.AdjVectorBQM.degrees¶
-
AdjVectorBQM.
degrees
(array=False, dtype=<class 'int'>)¶ Return the degrees of a binary quadratic model’s variables.
- Parameters
array (Boolean) – If True, returns a
numpy.ndarray
; otherwise returns a dict.dtype (
numpy.dtype
, optional) – The data type of the returned degrees. Applies only if array==True.
- Returns
Degrees of all variables.
- Return type
numpy.ndarray
or dict