added graph search function
Merge pull request #1 from ricomonster/master

Approved pull request.