Relation R is given by matrix