Create Check if a route exists between two nodes in a directed graph