powered by
Calculate the density of a graph.
metric.graph.density(g)
The input network.
A real constant.
Computes the ratio of the number of edges and the number of possible edges.
# NOT RUN { x <- net.erdos.renyi.gnp(1000, 0.01) metric.graph.density(x) # }
Run the code above in your browser using DataLab