public boolean hasAssignment(Assignment a){
  return matrix.containsKey(a);
}

public boolean hasAssignment ( Assignment a ) { return matrix . containsKey ( a ) ; }
returns true if the factor contains the assignment , and false otherwise
