# create the data: two binary relations among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .9, 3 ) )
# establish the system of strong bonds
rs <- rel.sys(arr, bonds = "strong")
# obtain inmediate neighbourhood of the first node
neighb(1, rs)
Run the code above in your browser using DataLab