Re: [R] igraph: Turn multiple edges into weights

2012-08-15 Thread Gábor Csárdi
On Tue, Aug 14, 2012 at 5:09 PM, Jonas Michaelis wrote: > Dear all, > > > I have some network data - about 300 vertices and several thousand edges. I > am looking for a way to turn multiple edges into weights of the edges. I > looked around and - surprisingly? - haven't found anything. Is there an

Re: [R] igraph: Turn multiple edges into weights

2012-08-15 Thread Rui Barradas
Hello, There is a function count.multiple that can be used to do what you want. You can also have a function return unique rows/edges. Here are three functions that count multiple edges. library(igraph) ee <- c(1,2,2,3,1,2,2,4,1,2,2,3) g <- graph(ee) plot(g) # Returns a two column matrix w

[R] igraph: Turn multiple edges into weights

2012-08-14 Thread Jonas Michaelis
Dear all, I have some network data - about 300 vertices and several thousand edges. I am looking for a way to turn multiple edges into weights of the edges. I looked around and - surprisingly? - haven't found anything. Is there an easy way to do this? Best, Jonas [[alternative HTML ver