Single-DFS and Connected Graph Check