networkcommons.methods.compute_ppr_overlap

networkcommons.methods.compute_ppr_overlap(network, percentage=20)
Compute the overlap of nodes that exceed the personalized PageRank

percentage threshold from sources and targets.

Parameters:
  • network (nx.Graph) – The network.

  • percentage (int) – Percentage of top nodes to keep.

Returns:

Contains nodes above threshold from sources, nodes above

threshold from targets, and overlapping nodes.

Return type:

tuple