network.edgecount: Return the Number of Edges in a Network Object
Description
network.edgecount returns the number of edges within a network, removing those flagged as missing if desired.
Usage
network.edgecount(x, na.omit = TRUE)
Arguments
x
an object of class network
na.omit
logical; omit edges with na==TRUE from the count?
Value
The number of edges
Details
The return value network.edgecount is equal to x%n%"mnext"-1, minus the number of NULL edges (and missing edges, if na.omit==TRUE). Note that g%n%"mnext"-1 cannot, by itself, be counted upon to be an accurate count of the number of edges!
References
Butts, C.T. 2002. ``Memory Structures for Relational Data in R: Classes and Interfaces'' Working Paper.