Description Usage Arguments Details Value Examples
Computes the uncorrected or corrected average local clustering coffiecient.
1 |
adj |
numeric matrix representing the adjacency matrix. |
types |
character. Either |
weights |
numeric vector of edge weights. Optional. |
mode |
character, either |
The uncorrected clustering coefficent is computed according to Watts &
Strogatz (1998). The corrected clustering coefficient normalizes the
uncorrected one by the average degree / n nodes
, i.e., the expected
average local clustering for an Erdös-Renyi random graph.
the corrected local clustering coefficient and/or the uncorrected clustering coefficient.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # get fluency data
data(animal_fluency)
# edge lists of fluency graphs
edge_list = threshold_graph(animal_fluency)
# get adjacency matrices
adj = edg_to_adj(edge_list)
# get local average clustering coefficient
alc(adj)
# get corrected local average clustering coefficient
alc(adj, types = 'corrected')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.