the problem was that i dfs-ed not transponented graph