added support for graph search