add path find functions to graph