[R] Finding all triangles in a graph

2011-12-26 Thread Taral
d(x, index(adj[x[1],] & adj[x[2],] I'm absolutely certain I've gone down the wrong path here. O great R gurus, your guidance would be most welcome. -- Taral "Please let me know if there's any further trouble I can give you."     -- Unknown

Re: [R] Help transforming a dist

2011-12-23 Thread Taral
or(dist(fakedata))) >  X1 X2      dist > 1  A  B 0.8617733 > 2  A  C 0.3813032 > 3  B  C 0.5124284 > > Sarah > > On Thu, Dec 22, 2011 at 7:03 PM, Taral wrote: >> I'd like to convert a dist into a table/matrix/thingy of the form: >> >> A

[R] Help transforming a dist

2011-12-22 Thread Taral
I'd like to convert a dist into a table/matrix/thingy of the form: A B value A C value B C value (assuming the dist was over 3 names). Is there a way to do this without using a for loop? -- Taral "Please let me know if there's any further trouble I can give you.&