renamed graph -> graphGen
bfs dfs imp