Finding all paths between a set of vertices in a DAG
问题 Given a graph G= (V, E) that is: directed, acyclic, non-weighted, may have more than one edge between two vertices (thus, source and destination are not enough to determine an edge). And given a set of vertices, let's call them vSet ; that contains a vertex vRoot ; I need to find ALL paths pSet between vSet elements respecting the following: any vertex that appears as a source for some path in pSet must be reachable from vRoot. any path in pSet must has its source and destination from vSet ,