search_graph function

Search a graph with depth first and breath first