localClusteringCoefficient: Calculate the local clustering coefficient

Description Usage Arguments Value Author(s) References See Also Examples

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

1

Arguments

adj

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

Value

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

Author(s)

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

1
2
3
4
5
6
	data(PCIT)
	m <- m[1:200,1:200]        # just use a small subset of the data
	result <- pcit(m)
	m[idx(result)] <- 0
	
	localClusteringCoefficient(m)

PCIT documentation built on May 1, 2019, 8:10 p.m.