nx_parallel.algorithms.centrality.betweenness#

Functions#

betweenness_centrality(G[, k, normalized, weight, ...])

The parallel computation is implemented by dividing the nodes into chunks and

edge_betweenness_centrality(G[, k, normalized, ...])

The parallel computation is implemented by dividing the nodes into chunks and

Module Contents#

nx_parallel.algorithms.centrality.betweenness.betweenness_centrality(G, k=None, normalized=True, weight=None, endpoints=False, seed=None, get_chunks='chunks')[source]#

The parallel computation is implemented by dividing the nodes into chunks and computing betweenness centrality for each chunk concurrently.

networkx.betweenness_centrality : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.betweenness_centrality.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.

nx_parallel.algorithms.centrality.betweenness.edge_betweenness_centrality(G, k=None, normalized=True, weight=None, seed=None, get_chunks='chunks')[source]#
The parallel computation is implemented by dividing the nodes into chunks and

computing edge betweenness centrality for each chunk concurrently.

networkx.edge_betweenness_centrality : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.edge_betweenness_centrality.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.