vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.35k stars 1.17k forks source link

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

Open artemkorsakov opened 2 months ago

artemkorsakov commented 2 months ago

General Question

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

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?

MuYiYong commented 2 months ago

Thanks, it's a bug!