Amazon Interview Question

Given a node in a directed graph, write a function that determines if there is a cycle in the graph.