implement some keyword search algorithms on graph