def check_next_match(self, match, new_relations, subject_graph, one_match):
<EOL>if not (self.criteria_sets is None or one_match):<EOL><INDENT>for check in self.duplicate_checks:<EOL><INDENT>vertex_a = new_relations.get(check[<NUM_LIT:0>])<EOL>vertex_b = new_relations.get(check[<NUM_LIT:1>])<EOL>if vertex_a is None and vertex_b is None:<EOL><INDENT>continue <EOL><DEDENT>if vertex_a is None:<EOL><INDENT>vertex_a = match.forward.get(check[<NUM_LIT:0>])<EOL>if vertex_a is None:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>elif vertex_b is None:<EOL><INDENT>vertex_b = match.forward.get(check[<NUM_LIT:1>])<EOL>if vertex_b is None:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>if vertex_a > vertex_b:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL><DEDENT>return True<EOL>
Check if the (onset for a) match can be a valid