Learn R Programming

QuACN (version 1.8.0)

globalClusteringCoeff: Global Clustering Coefficient

Description

This method calculates the Global Clustering Coefficient.

Usage

globalClusteringCoeff(g, loc = NULL)

Arguments

g
a graph as a graphNEL object.
loc
the the local clustering coefficient.

Value

References

D. Watts, Small Worlds: The Dynamics of Networks Between Order and Randomness. Princeton Univ Pr, 2003. D. Watts and S. Strogatz, Collective dynamics of 'Small-World' Networks, Nature, vol. 393, no. 6684, pp. 440-442, 1998.

Examples

Run this code

library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)

loccc <- localClusteringCoeff(g)
globalClusteringCoeff(g)
globalClusteringCoeff(g,loc=loccc)

Run the code above in your browser using DataLab