code: def add_to_subset(self, id, s):
          
          n = self.node(id)
          if 'meta' not in n:
              n['meta'] = {}
          meta = n['meta']
          if 'subsets' not in meta:
              meta['subsets'] = []
          meta['subsets'].append(s)
docs: Adds a node to a subset