Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding the same label edges with different labels in src and dst #411

Closed
lidongze0629 opened this issue Jun 15, 2021 · 0 comments
Closed
Labels
component:gae enhancement New feature or request warmup Warmup issue for developer

Comments

@lidongze0629
Copy link
Collaborator

lidongze0629 commented Jun 15, 2021

As title, pass the following test with an eager mode session.

# add the same label "group" edges with different src dst labels
def test_multi_src_dst_edge_loader():
    graph = graphscope_session.g()
    graph = graph.add_vertices(student_v, "student")
    graph = graph.add_vertices(teacher_v, "teacher")
    graph = graph.add_edges(
        student_group_e,
        "group",  # "group" edges with "student" src and dst
        ["group_id", "member_size"],
        src_label="student",
        dst_label="student",
    )
    graph = graph.add_edges(
        teacher_group_e,
        "group",  # "group" edges with "teacher" src and dst
        ["group_id", "member_size"],
        src_label="teacher",
        dst_label="teacher",
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:gae enhancement New feature or request warmup Warmup issue for developer
Projects
None yet
Development

No branches or pull requests

4 participants