Multi-Dendrix Logo

This Page

multi_dendrix.evaluate.network.dist

multi_dendrix.evaluate.network.dist(network, g1, g2)[source]

Returns the length of the shortest path between g1 and g2 in PPI. If no path exists, returns 1e100.

Parameters:
  • network (NetworkX Graph) – input PPI network.
  • pairs (list of tuples) – pairs of genes to test.
Returns:

distance (float) - distance between the two genes on the network. If no path between the genes exists, returns 1e100.

See also: direct_interactions_stat(), interact().