nebula
nebula copied to clipboard
Get subgraph doesn't return loop in the results
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?
Thanks, it's a bug!