finish dfs hyper graph path finding, not debugged.