move path module into paths
BFS paths in digraph