Find if there is a path between two vertices in a directed graph