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

Get subgraph doesn't return loop in the results #5851

Open
artemkorsakov opened this issue Apr 10, 2024 · 1 comment
Open

Get subgraph doesn't return loop in the results #5851

artemkorsakov opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected

Comments

@artemkorsakov
Copy link

General Question

I have three vertexes: vertex1, vertex2, vertex3 and some edges:

  • edge1 (loop): vertex1 -> vertex1
  • edge2: vertex2 -> vertex1
  • edge3: vertex3 -> vertex1
  • edge4: vertex2 -> vertex3

A query GET SUBGRAPH WITH PROP 100 STEPS FROM 'vertex1' YIELD EDGES AS `edges`; returns all the edges:
edge1, edge2, edge3, edge4.

But queries on other vertices do not output loops:

GET SUBGRAPH WITH PROP 100 STEPS FROM 'vertex2' YIELD EDGES AS `edges`;
GET SUBGRAPH WITH PROP 100 STEPS FROM 'vertex3' YIELD EDGES AS `edges`;

The result: edge2, edge3, edge4.

Could you tell me, please, why this happens?

@QingZ11 QingZ11 added the type/question Type: question about the product label Apr 11, 2024
@MuYiYong
Copy link

Thanks, it's a bug!

@QingZ11 QingZ11 added type/bug Type: something is unexpected and removed type/question Type: question about the product labels Apr 11, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

4 participants