defined vertex pairing