Re: [R] Number of edges in a graph

2011-03-21 Thread Peter Ehlers
?ecount Peter Ehlers On 2011-03-20 22:02, kparamas wrote: Hi, I have a igraph graph object. g<- watts.strogatz.game(1, 100, 5, 0.05) If I have the summary of g, it prints summary(g) Vertices: 100 Edges: 500 Directed: FALSE No graph attributes. No vertex attributes. No edge attributes. How

Re: [R] Number of edges in a graph

2011-03-21 Thread Petr Savicky
On Sun, Mar 20, 2011 at 10:02:10PM -0700, kparamas wrote: > Hi, > > I have a igraph graph object. > g <- watts.strogatz.game(1, 100, 5, 0.05) > > If I have the summary of g, it prints > > summary(g) > Vertices: 100 > Edges: 500 > Directed: FALSE > No graph attributes. > No vertex attributes. >

[R] Number of edges in a graph

2011-03-21 Thread kparamas
Hi, I have a igraph graph object. g <- watts.strogatz.game(1, 100, 5, 0.05) If I have the summary of g, it prints > summary(g) Vertices: 100 Edges: 500 Directed: FALSE No graph attributes. No vertex attributes. No edge attributes. How to print only the number of edges in g? -- View this mes