class DirectedGraphPathCheck {

	public static boolean pathCheckDFS(GraphNode<Integer> p, GraphNode<Integer> q){
		boolean isFound =false;
		
		p.restoreVisited();
		isFound |= pathOrderCheckDFS(p, q);
		
		q.restoreVisited();
		isFound |= pathOrderCheckDFS(q, p);
		
		return isFound;
	}

}