nx_parallel.algorithms.tournament#

Functions#

is_reachable(G, s, t[, get_chunks])

The function parallelizes the calculation of two

tournament_is_strongly_connected(G[, get_chunks])

The parallel computation is implemented by dividing the

Module Contents#

nx_parallel.algorithms.tournament.is_reachable(G, s, t, get_chunks='chunks')[source]#

The function parallelizes the calculation of two neighborhoods of vertices in G and checks closure conditions for each neighborhood subset in parallel.

networkx.tournament.is_reachable : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.tournament.is_reachable.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.tournament.tournament_is_strongly_connected(G, get_chunks='chunks')[source]#

The parallel computation is implemented by dividing the nodes into chunks and then checking whether each node is reachable from each other node in parallel.

Note, this function uses the name tournament_is_strongly_connected while dispatching to the backend implementation. So, nxp.tournament.is_strongly_connected will result in an error. Use nxp.tournament_is_strongly_connected instead.

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