add graph matrix search algorithm function
graph list search and topology algorithm function