metric.graph.density: Graph Density

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate the density of a graph.

Usage

1

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

1
2
3
4
## Not run: 
x <-  net.erdos.renyi.gnp(1000, 0.01)
metric.graph.density(x)
## End(Not run)

networkgroupR/fastnet documentation built on May 23, 2019, 1:32 p.m.