add graph searching iteration