first version of graph serach