Learn R Programming

network (version 1.0-1)

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

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. 2002. ``Memory Structures for Relational Data in R: Classes and Interfaces'' Working Paper.

See Also

get.network.attribute

Examples

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

Run the code above in your browser using DataLab