Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

network.size

Return the Size of a Network


Description

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

Usage

network.size(x, ...)

Arguments

x

an object of class network

...

additional arguments, not used

Details

network.size(x) is equivalent to get.network.attribute(x,"n"); the function exists as a convenience.

Value

The network size

Author(s)

Carter T. Butts buttsc@uci.edu

References

Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). https://www.jstatsoft.org/v24/i02/

See Also

Examples

#Initialize a network
g<-network.initialize(7)
network.size(g)

network

Classes for Relational Data

v1.16.1
GPL (>= 2)
Authors
Carter T. Butts [aut, cre], David Hunter [ctb], Mark Handcock [ctb], Skye Bender-deMoll [ctb], Jeffrey Horner [ctb], Li Wang [ctb]
Initial release
2020-10-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.