Learn R Programming

networkABC (version 0.9-1)

localClusteringCoefficient: Calculate the local clustering coefficient

Description

Calculate the local clustering coefficient for each node in an adjacency matrix. The clustering coefficient is defined as the proportion of existing connections from the total possible (Watts and Strogatz, 1998).

Usage

localClusteringCoefficient(adj)

Value

A vector of local clustering coefficients for each node/gene of the adjacency matrix.

Arguments

adj

An adjacency matrix. Calculating the clustering coefficient only makes sense if some connections are zero i.e. no connection.

Author

Nathan S. Watson-Haigh

References

D.J. Watts and S.H. Strogatz. (1998) Collective dynamics of 'small-world' networks. Nature. 393(6684). 440-442.

See Also

clusteringCoefficient

Examples

Run this code

localClusteringCoefficient(network_gen(50,.33)$network)

Run the code above in your browser using DataLab