up search acyclic graph
c++

search acyclic graph with keys