Learn R Programming

networkABC (version 0.9-1)

clusteringCoefficient: Calculate the clustering coefficient

Description

Calculate the clustering coefficient for an adjacency matrix. By default, the local clustering coefficient is calculated. From the PCIT package after it was archived on the CRAN.

Usage

clusteringCoefficient(adj, FUN = "localClusteringCoefficient", ...)

Value

The clustering coefficient(s) for the adjacency matrix.

Arguments

adj

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

FUN

The function for calculating the clustering coefficient.

...

Arguments to pass to FUN

Author

Nathan S. Watson-Haigh

See Also

localClusteringCoefficient

Examples

Run this code
clusteringCoefficient(network_gen(50,.33)$network)

Run the code above in your browser using DataLab