Computes the small-world index of an unweighted graph. When the graph is weighted, weights are removed and every nonzero edge weight is set to 1.
smallworldIndex(x)A list containing:
The transitivity of the network
The expected transitivity of a random network of the same size and density
The average shortest path length of the network
The expected average shortest path length of a random network of the same size and density
The small-world index
A qgraph or igraph object.
Sacha Epskamp <mail@sachaepskamp.com>
Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of 'small-world' networks. Nature, 393(6684), 440-442.