fix mistake usage of self param in recursive func and [] as default para...

The implementation of graph search is obviously wrong, see the new output infomation and it should also allow users to able to call graph functions multiple times if necessary.