 In the R matrix, an attribute is considered related to itself resulting in 1's along the main diagonal.Referring back to the hierarchy, it is shown that attribute A1 is directly connected to attribute A2 and indirectly to A3 through its connection with A2.Attribute A1 is indirectly connected to attributes A5 to A9 through its connection with A4.