Beispiel #1
0
def test_huge_nx_to_memgraph_parallel_with_index(
        memgraph: Memgraph, big_random_nx_graph: nx.Graph):
    memgraph.create_index(MemgraphIndex("Label", "id"))

    nx_graph_to_memgraph_parallel(big_random_nx_graph)
Beispiel #2
0
def test_big_nx_to_memgraph_with_manual_index(memgraph: Memgraph,
                                              random_nx_graph: nx.Graph):
    memgraph.create_index(MemgraphIndex("Label", "id"))

    for query in nx_to_cypher(random_nx_graph):
        memgraph.execute(query)