DFS almost finished. Need to check integrity of graph data