def __init__(self, *neighbor_criteria):
for criterion in neighbor_criteria:<EOL><INDENT>if not hasattr(criterion, "<STR_LIT>"):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT><DEDENT>self.neighbor_criteria = list(neighbor_criteria)<EOL>
Arguments:
 | ``*neighbor_criteria``  --  a list of criteria objects