map_reduce_edges