assortativity.degree() was renamed to assortativity_degree() to create a more
consistent API.
Arguments
- graph
The input graph, it can be directed or undirected.
- directed
Logical scalar, whether to consider edge directions for directed graphs. This argument is ignored for undirected graphs. Supply
TRUEhere to do the natural thing, i.e. use directed version of the measure for directed graphs and the undirected version for undirected graphs.
