Changes signature of GraphPath and adds start and end vertex, to be able to deal with undirected graphs.