network.density {network} | R Documentation |
network.density
computes the density of its argument.
network.density(x)
x |
an object of class network |
The density of a network is defined as the ratio of extant edges to potential edges. We do not currently consider edge values; missing edges are automatically omitted.
The network density.
Carter T. Butts buttsc@uci.edu
Wasserman, S. and Faust, K. 1994. Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
network.edgecount
, network.size
#Create an arbitrary adjacency matrix m<-matrix(rbinom(25,1,0.5),5,5) diag(m)<-0 g<-network.initialize(5) #Initialize the network network.density(g) #Calculate the density