Graphs works, next BFS and DFS:)