[R] transitivity

alex pegucci alexpegucci at yahoo.com
Thu Oct 28 23:27:23 CEST 2004


Dear all,

Is there a function in R that checks transitivity and acyclicity of a
given nXn matrix with entries representing a decision-maker's
comparisons of n objects? Like 

0 1 0 1 1 1
0 0 0 1 0 0
1 0 0 0 1 1
0 0 1 0 0 0
0 1 0 1 0 1
0 1 0 1 0 0

1 represents xPy and 0 represents ~xPy. Is there a vectorized solution
to this? n can be quite large. 

Thanks in advance,

Alex




More information about the R-help mailing list