nx_parallel.algorithms.isolate#
Functions#
|
The parallel computation is implemented by dividing the list |
Module Contents#
- nx_parallel.algorithms.isolate.number_of_isolates(G, get_chunks='chunks')[source]#
The parallel computation is implemented by dividing the list of isolated nodes into chunks and then finding the length of each chunk in parallel and then adding all the lengths at the end.
networkx.number_of_isolates : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.isolate.number_of_isolates.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the isolated nodes as input and returns an iterable isolate_chunks. The default chunking is done by slicing the isolates into n_jobs number of chunks.