added support for paths with find_vertex