code: def from_first_relation(cls, vertex0, vertex1):
          
          result = cls([(vertex0, vertex1)])
          result.previous_ends1 = set([vertex1])
          return result
docs: Intialize a fresh match based on the first relation