MCPcopy Create free account
hub / github.com/alibaba/GraphScope / p2p_graph_from_pandas

Function p2p_graph_from_pandas

python/graphscope/tests/conftest.py:440–449  ·  view source on GitHub ↗
(graphscope_session)

Source from the content-addressed store, hash-verified

438
439@pytest.fixture(scope="module")
440def p2p_graph_from_pandas(graphscope_session):
441 # set chunk size to 1k
442 os.environ["GS_GRPC_CHUNK_SIZE"] = str(1024 - 1)
443 df_v = pd.read_csv(f"{property_dir}/p2p-31_property_v_0", sep=",")
444 df_e = pd.read_csv(f"{property_dir}/p2p-31_property_e_0", sep=",")
445 g = graphscope_session.g(generate_eid=False, retain_oid=False, directed=False)
446 g = g.add_vertices(df_v, "person")
447 g = g.add_edges(df_e, label="knows", src_label="person", dst_label="person")
448 yield g
449 del g
450
451
452@pytest.fixture(scope="module")

Callers

nothing calls this directly

Calls 3

gMethod · 0.45
add_verticesMethod · 0.45
add_edgesMethod · 0.45

Tested by

no test coverage detected