def _handle_add(self, counter, candidate):
		'''
		Called on node creation. 

		:param counter: (int) counter of newly created candidate
		:param candidate: newly created candidate to add to predecessor \
		  dictionary
		:rtype: None
		'''
		if counter == None:
			get_logger().warning(
				"LeaderQueue._handle_add Unknown candidate %s" % (counter))
		else:
			self._update_predecessor_dict(counter, candidate)
		return None
dataset/ETHPy150Open Knewton/pettingzoo-python/pettingzoo/leader_queue.py/LeaderQueue._handle_add/original