nx_parallel.algorithms.efficiency_measures#

Provides functions for computing the efficiency of nodes and graphs.

Functions#

local_efficiency(G[, get_chunks])

The parallel computation is implemented by dividing the

Module Contents#

nx_parallel.algorithms.efficiency_measures.local_efficiency(G, get_chunks='chunks')[source]#

The parallel computation is implemented by dividing the nodes into chunks and then computing and adding global efficiencies of all node in all chunks, in parallel, and then adding all these sums and dividing by the total number of nodes at the end.

networkx.local_efficiency : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.efficiency_measures.local_efficiency.html

Parameters#

get_chunksstr, function (default = “chunks”)

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