Relation grid: A = {1, 2, 3, 4}

Choose a rule, or tap the pairs yourself

Row = a, column = b. A lit cell means the ordered pair (a, b) is in R. A × A has 16 pairs.