Understanding the relationship between matrix notation and set-theoretical notation

GA relation applied to the elements of the set X = {a,b,c,d} that follows the set-theoretical notation

R = {(c.b), (d,a), (b,d)}

Would be depicted in a matrix in the following way:

matrix 1

Exercise

Illustrate the following set-theoretical notation of the following binary relation on the set R ⊆ A x A on the set A = {a, b, c, d}

R = {(c,d), (a,d), (b,c), (c,c), (d,c), (b,a), (d,a)}

  a b c d
a        
b        
c        
d