Return the Number of (Possibly Directed) Dyads in a Network Object
network.dyadcount.Rdnetwork.dyadcount returns the number of possible dyads within a
network, removing those flagged as missing if desired. If the
network is directed, directed dyads are counted accordingly.
Details
The return value network.dyadcount is equal to the number of dyads,
minus the number of NULL edges (and missing edges, if
na.omit==TRUE). If x is directed, the number of directed
dyads is returned. If the network allows loops, the number of possible
entries on the diagnonal is added. Allthough the function does not give an
error on multiplex networks or hypergraphs, the results probably don't make
sense.
References
Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). doi:10.18637/jss.v024.i02
Author
Mark S. Handcock handcock@stat.washington.edu, skyebend