nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Get subgraph doesn't return loop in the results

Open artemkorsakov opened this issue 10 months ago • 1 comments

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?

artemkorsakov avatar Apr 10 '24 15:04 artemkorsakov

Thanks, it's a bug!

MuYiYong avatar Apr 11 '24 04:04 MuYiYong