Dear community, I want to ask for your help to understand something.

I am using the function **apoc.path.subgraphAll** to get the subgraph containing 2 hops from the source node in any direction and with any relationship type. This function has the parameter **bfs** to select the way to traverse the graph, Breadth or Depth first search. I assumed the results would be the same with any of those parameters, just the calculation time would be different. However using BFS I get more results than using DFS, is that correct? Do am I doing something wrong?

Here is my code:

```
MATCH (concept:Concept)
WHERE concept.id in ['/c/en/sweeping']
CALL apoc.path.subgraphAll(concept, {
relationshipFilter: null,
minLevel: 0,
maxLevel: 2,
bfs: true })
YIELD nodes, relationships
RETURN nodes, relationships;
```

I attach some images so you can see the difference in the results

I would really appreciate your help.

Best regards,

Andrés