[R] Number of edges in a graph

From: kparamas <kparamas_at_asu.edu>
Date: Sun, 20 Mar 2011 22:02:10 -0700 (PDT)


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 message in context: http://r.789695.n4.nabble.com/Number-of-edges-in-a-graph-tp3392633p3392633.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Mar 2011 - 07:11:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Mar 2011 - 10:10:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive