def build_edges(src_profile, dst_profiles):
    """create set of edges, compatible with NX graph format."""
    edges = set()
    for dst_profile in dst_profiles:
        edges.add((src_profile['uid'], dst_profile['uid']))
    return edges