graph.diversity() was renamed to diversity() to create a more
consistent API.
Usage
graph.diversity(graph, weights = NULL, vids = V(graph))Arguments
- graph
The input graph. Edge directions are ignored.
- weights
NULL, or the vector of edge weights to use for the computation. IfNULL, then the ‘weight’ attibute is used. Note that this measure is not defined for unweighted graphs.- vids
The vertex IDs for which to calculate the measure. The default
NULLselects all vertices.
