Share Download code Jump to the code Open in the playground

BFS and DFS graph traversals

We initialize Ogma with a graph. The graph is generated with random nodes and edges.