Skip to main content
Ctrl+K
nx-parallel 0.4 documentation - Home nx-parallel 0.4 documentation - Home
  • Overview
  • Tutorial
  • Installation
  • API Reference
  • Configuration
  • Contributing
  • GitHub
  • Overview
  • Tutorial
  • Installation
  • API Reference
  • Configuration
  • Contributing
  • GitHub

Section Navigation

  • nx_parallel
    • nx_parallel.algorithms
      • nx_parallel.algorithms.approximation
        • nx_parallel.algorithms.approximation.connectivity
      • nx_parallel.algorithms.assortativity
        • nx_parallel.algorithms.assortativity.neighbor_degree
      • nx_parallel.algorithms.bipartite
        • nx_parallel.algorithms.bipartite.redundancy
      • nx_parallel.algorithms.centrality
        • nx_parallel.algorithms.centrality.betweenness
        • nx_parallel.algorithms.centrality.harmonic
      • nx_parallel.algorithms.cluster
      • nx_parallel.algorithms.components
        • nx_parallel.algorithms.components.attracting
        • nx_parallel.algorithms.components.connected
        • nx_parallel.algorithms.components.strongly_connected
        • nx_parallel.algorithms.components.weakly_connected
      • nx_parallel.algorithms.connectivity
        • nx_parallel.algorithms.connectivity.connectivity
      • nx_parallel.algorithms.dag
      • nx_parallel.algorithms.efficiency_measures
      • nx_parallel.algorithms.isolate
      • nx_parallel.algorithms.link_prediction
      • nx_parallel.algorithms.mis
      • nx_parallel.algorithms.shortest_paths
        • nx_parallel.algorithms.shortest_paths.generic
        • nx_parallel.algorithms.shortest_paths.unweighted
        • nx_parallel.algorithms.shortest_paths.weighted
      • nx_parallel.algorithms.tournament
      • nx_parallel.algorithms.vitality
    • nx_parallel.interface
    • nx_parallel.utils
      • nx_parallel.utils.chunk
      • nx_parallel.utils.decorators
      • nx_parallel.utils.should_run_policies
  • API Reference
  • nx_parallel
  • nx_parallel.algorithms
  • nx_parallel.algorithms.link_prediction

nx_parallel.algorithms.link_prediction#

Functions#

resource_allocation_index(G[, ebunch, get_chunks])

The edge pairs are chunked into pairs_chunks and then the resource

jaccard_coefficient(G[, ebunch, get_chunks])

The edge pairs are chunked into pairs_chunks and then the jaccard

adamic_adar_index(G[, ebunch, get_chunks])

The edge pairs are chunked into pairs_chunks and then the adamic

preferential_attachment(G[, ebunch, get_chunks])

The edge pairs are chunked into pairs_chunks and then the

common_neighbor_centrality(G[, ebunch, alpha, get_chunks])

The edge pairs are chunked into pairs_chunks and then the

cn_soundarajan_hopcroft(G[, ebunch, community, get_chunks])

The edge pairs are chunked into pairs_chunks and then the

ra_index_soundarajan_hopcroft(G[, ebunch, community, ...])

The edge pairs are chunked into pairs_chunks and then the resource

within_inter_cluster(G[, ebunch, delta, community, ...])

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.

previous

nx_parallel.algorithms.isolate

next

nx_parallel.algorithms.mis

On this page
  • Functions
  • Module Contents
    • resource_allocation_index()
    • jaccard_coefficient()
    • adamic_adar_index()
    • preferential_attachment()
    • common_neighbor_centrality()
    • cn_soundarajan_hopcroft()
    • ra_index_soundarajan_hopcroft()
    • within_inter_cluster()

© Copyright 2026, nx-parallel contributors.

Created using Sphinx 9.2.0.

Built with the PyData Sphinx Theme 0.24.0.