class_docstr: Represents a basic subset object.
  
  Explanation
  ===========
  
  We generate subsets using essentially two techniques,
  binary enumeration and lexicographic enumeration.
  The Subset class takes two arguments, the first one
  describes the initial subset to consider and the second
  describes the superset.
  
  Examples
  ========
  
  >>> from sympy.combinatorics import Subset
  >>> a = Subset(['c', 'd'], ['a', 'b', 'c', 'd'])
  >>> a.next_binary().subset
  ['b']
  >>> a.prev_binary().subset
  ['c']
class_docstr_tok: ["Represents","a","basic","subset","object",".","Explanation","===========","We","generate","subsets","using","essentially","two","techniques",",","binary","enumeration","and","lexicographic","enumeration",".","The","Subset","class","takes","two","arguments",",","the","first","one","describes","the","initial","subset","to","consider","and","the","second","describes","the","superset",".","Examples","========",">",">",">","from","sympy.combinatorics","import","Subset",">",">",">","a","=","Subset","(","[","'","c","'",",","'d","'","]",",","[","'","a","'",",","'","b","'",",","'","c","'",",","'d","'","]",")",">",">",">","a.next_binary","(",")",".subset","[","'","b","'","]",">",">",">","a.prev_binary","(",")",".subset","[","'","c","'","]"]
docstr: Return a boolean indicating whether a == b on the basis of
  whether both objects are of the class Subset and if the values
  of the subset and superset attributes are the same.
docstr_tok: ["Return","a","boolean","indicating","whether","a","==","b","on","the","basis","of","whether","both","objects","are","of","the","class","Subset","and","if","the","values","of","the","subset","and","superset","attributes","are","the","same","."]
code: def __eq__(self, other):
      """Return a boolean indicating whether a == b on the basis of
      whether both objects are of the class Subset and if the values
      of the subset and superset attributes are the same.
      """
      if not isinstance(other, Subset):
          return NotImplemented
      return (
          self.subset == other.subset
          and self.superset == other.superset
      )
  
imports: from itertools import combinations
  from sympy.combinatorics.graycode import GrayCode
label_desc: Use image node_id 2 for calling the Subset obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, NotImplemented