def joined(self, a, b):
      """Returns True if a and b are members of the same set."""
      mapping = self._mapping
      try:
          return mapping[a] is mapping[b]
      except KeyError:
          return False
Returns True if a and b are members of the same set.
recipes/Python/387776_Grouping_objects_indisjoint/recipe-387776.py