Implemented the graph search feature