Matrix forms and two-uple relations. For the two option, the index calculations are performed over vertex pairs i and j.