nx_parallel.algorithms.assortativity.neighbor_degree#

Functions#

average_neighbor_degree(G[, source, target, nodes, ...])

The nodes are chunked into node_chunks and then the average degree of the

Module Contents#

nx_parallel.algorithms.assortativity.neighbor_degree.average_neighbor_degree(G, source='out', target='out', nodes=None, weight=None, get_chunks='chunks')[source]#

The nodes are chunked into node_chunks and then the average degree of the neighborhood of each node for all node_chunks is computed in parallel over n_jobs number of CPU cores.

networkx.average_neighbor_degree: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.assortativity.average_neighbor_degree.html

Parameters#

get_chunksstr, function (default = “chunks”)

A function that takes in a list of all the nodes (or nbunch) as input and returns an iterable node_chunks. The default chunking is done by slicing the nodes into n_jobs number of chunks.