nx_parallel.algorithms.link_prediction#
Functions#
|
The edge pairs are chunked into pairs_chunks and then the resource |
|
The edge pairs are chunked into pairs_chunks and then the jaccard |
|
The edge pairs are chunked into pairs_chunks and then the adamic |
|
The edge pairs are chunked into pairs_chunks and then the |
|
The edge pairs are chunked into pairs_chunks and then the |
|
The edge pairs are chunked into pairs_chunks and then the |
|
The edge pairs are chunked into pairs_chunks and then the resource |
|
The edge pairs are chunked into pairs_chunks and then the ratio |
Module Contents#
- nx_parallel.algorithms.link_prediction.resource_allocation_index(G, ebunch=None, get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the resource allocation index for all pairs_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.resource_allocation_index: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.resource_allocation_index.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.jaccard_coefficient(G, ebunch=None, get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the jaccard coefficient for all pairs_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.jaccard_coefficient: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.jaccard_coefficient.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.adamic_adar_index(G, ebunch=None, get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the adamic adar index for all pairs_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.adamic_adar_index: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.adamic_adar_index.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.preferential_attachment(G, ebunch=None, get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the preferential attachment for all pairs_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.preferential_attachment: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.preferential_attachment.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.common_neighbor_centrality(G, ebunch=None, alpha=0.8, get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the common neighbor centrality for all pairs_chunks is computed in parallel over n_jobs number of CPU cores.
networkx.common_neighbor_centrality: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.common_neighbor_centrality.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.cn_soundarajan_hopcroft(G, ebunch=None, community='community', get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the number of common neighbors for all pairs_chunks is computed in parallel, using community information, over n_jobs number of CPU cores.
networkx.cn_soundarajan_hopcroft: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.cn_soundarajan_hopcroft.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.ra_index_soundarajan_hopcroft(G, ebunch=None, community='community', get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the resource allocation index for all pairs_chunks is computed in parallel, using the community information, over n_jobs number of CPU cores.
networkx.ra_index_soundarajan_hopcroft: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.ra_index_soundarajan_hopcroft.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.
- nx_parallel.algorithms.link_prediction.within_inter_cluster(G, ebunch=None, delta=0.001, community='community', get_chunks='chunks')[source]#
The edge pairs are chunked into pairs_chunks and then the ratio of within- and inter-cluster common neighbors is computed, for all pairs_chunks in parallel over n_jobs number of CPU cores.
networkx.within_inter_cluster: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_prediction.within_inter_cluster.html
Parameters#
- get_chunksstr, function (default = “chunks”)
A function that takes in a list of all the edges (or ebunch) as input and returns an iterable pairs_chunks. The default chunking is done by slicing ebunch into n_jobs number of chunks.