graphsearch functioning