Source code for inphosite.lib.jweight

#from multiprocessing import Pool, cpu_count

def create_tuple(edge):
[docs] dist = edge.ante.shortest_path(edge.cons) return (edge.ante.ID, edge.cons.ID, dist, edge.jweight) def form_tuples(edges):
[docs] return map(create_tuple, edges)

This Page