You are given a DAG with N nodes and Q queries asking if node b can be reached from node a. Can this problem be solved for the likes of N = 10^5 and Q = 10^5?
Also I think if we are given a general directed graph, the problem can be turned into one on a DAG if we do SCC's?