def METHOD_NAME(knowledge_graph: KnowledgeGraph) -> Dict[str, Set[str]]:
    # Returns all edge IDs in the KG organized like so: {"e00": {"KG2:123", ...}, "e01": {"KG2:224", "KG2:225", ...}}
    edge_keys_by_qg_key = dict()
    if knowledge_graph.edges:
        for key, edge in knowledge_graph.edges.items():
            for qedge_key in edge.qedge_keys:
                if qedge_key not in edge_keys_by_qg_key:
                    edge_keys_by_qg_key[qedge_key] = set()
                edge_keys_by_qg_key[qedge_key].add(key)
    return edge_keys_by_qg_key