BFS and DFS queries in DGraph

Hi,
We are exploring dgraph and i have been asked to track performance on dfs and bfs searches in dgraph.
How can i write bfs and dfs graphql queries in dgraph? Any references… thanks much

Would be interested to know as well

BFS we implement already in the shortest path. Reference docs.

Great thanks, should have looked before. Have a nice day