Re: [R] R igraph clusters component

2009-12-04 Thread Gábor Csárdi
Hi, On Fri, Dec 4, 2009 at 3:12 AM, Gaurav Kumar gau...@gauravkumar.org wrote: Hi R-users, I'm using igraph for an undirected graph. i used clusters() igraph function to know the component size(subgraphs) as shown bellow: c -clusters(g) # component sizes size - sort(c$csize,

[R] R igraph clusters component

2009-12-03 Thread Gaurav Kumar
Hi R-users, I'm using igraph for an undirected graph. i used clusters() igraph function to know the component size(subgraphs) as shown bellow: c -clusters(g)    # component sizes size - sort(c$csize, decreasing=TRUE) cat(Top 20 cluster of the graph,\n) for (i in 1:20) {   cat(i,  size:,size[i]