metric.graph.density {fastnet} | R Documentation |
Graph Density
Description
Calculate the density of a graph.
Usage
metric.graph.density(g)
Arguments
g |
The input network. |
Details
Computes the ratio of the number of edges and the number of possible edges.
Value
A real constant.
Author(s)
Xu Dong, Nazrul Shaikh.
Examples
## Not run:
x <- net.erdos.renyi.gnp(1000, 0.01)
metric.graph.density(x)
## End(Not run)
[Package fastnet version 1.0.0 Index]