network.size returns the order of its argument (i.e., number of vertices).

network.size(x, ...)

Arguments

x

an object of class network

...

additional arguments, not used

Value

The network size

Details

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). doi:10.18637/jss.v024.i02

Author

Carter T. Butts buttsc@uci.edu

Examples


#Initialize a network
g<-network.initialize(7)
network.size(g)
#> [1] 7