nx_parallel.algorithms.dag#
Functions#
|
The parallel implementation first divides the nodes into chunks and then |
|
The parallel implementation first divides the nodes into chunks and then |
Module Contents#
- nx_parallel.algorithms.dag.v_structures(G, get_chunks='chunks')[source]#
The parallel implementation first divides the nodes into chunks and then creates a generator to lazily yield 3-node tuples that represent v_structures for each node_chunk, and then employs joblib’s Parallel function to execute these computations in parallel across n_jobs number of CPU cores.
networkx.dag.v_structures: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.dag.v_structures.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.dag.colliders(G, get_chunks='chunks')[source]#
The parallel implementation first divides the nodes into chunks and then creates a generator to lazily yield 3-node tuples that represent colliders for each node_chunk, and then employs joblib’s Parallel function to execute these computations in parallel across n_jobs number of CPU cores.
networkx.dag.colliders: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.dag.colliders.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.