getdegree
| getdegree | 
  Purpose
 
 
 Returns the degree in the constraint graph of the decision variable passed in argument (i.e., the number of constraints that involve it); this can be used for advanced search heuristics.
 
 
  Synopsis
 
 function getdegree(x:cpvar) : integer
 function getdegree(x:cpfloatvar) : integer
 
  Argument
 
 | 
     x 
     | 
     the decision variable
     | 
  Return value
 
 
 The degree of x
 
  Example
 
 
 The following example shows how to get the degree of a cpvar
 x
 
 d:=getdegree(x)
  Related topics
 
  
