// Generate lists of host and symbiont edges, such that the index// of the lists represents an edge connecting the host to the parasite.pars, hosts = np.nonzero(interaction)// print(hosts2, pars2)// get a vector of pairwise distances for each interaction edge
x = _get_dist(hosts, host_dist, range(interaction.shape[1]))