nx_parallel.algorithms.cluster#
Functions#
|
The nodes are chunked into node_chunks and then the square clustering |
|
The nodes are chunked into node_chunks and for all node_chunks |
|
The nodes are chunked into node_chunks and then the clustering |
|
The nodes are chunked into node_chunks and then the average clustering |
Module Contents#
- nx_parallel.algorithms.cluster.square_clustering(G, nodes=None, get_chunks='chunks')[source]#
The nodes are chunked into node_chunks and then the square clustering coefficient for all node_chunks are computed in parallel over n_jobs number of CPU cores.
networkx.square_clustering: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.cluster.square_clustering.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the nodes (or nbunch) 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.cluster.triangles(G, nodes=None, get_chunks='chunks')[source]#
The nodes are chunked into node_chunks and for all node_chunks the number of triangles that include a node as one vertex is computed in parallel over n_jobs number of CPU cores.
networkx.triangles : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.cluster.triangles.html#networkx.algorithms.cluster.triangles.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the nodes (or nbunch) 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.cluster.clustering(G, nodes=None, weight=None, get_chunks='chunks')[source]#
The nodes are chunked into node_chunks and then the clustering coefficient for all node_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.clustering: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.cluster.clustering.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the nodes (or nbunch) 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.cluster.average_clustering(G, nodes=None, weight=None, count_zeros=True, get_chunks='chunks')[source]#
The nodes are chunked into node_chunks and then the average clustering coefficient for all node_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.average_clustering: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.cluster.average_clustering.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the nodes (or nbunch) as input and returns an iterable node_chunks. The default chunking is done by slicing the nodes into n_jobs number of chunks.