edge_node_distance function

Perform the distance distribution of paired nodes in edges across networks.