network.size(x) is equivalent to get.network.attribute(x,"n");
the function exists as a convenience.
References
Butts, C. T. (2008). “network: a Package for Managing
Relational Data in R.” Journal of Statistical Software, 24(2).
tools:::Rd_expr_doi("10.18637/jss.v024.i02")