Intuit Interview Question

How can I tell if a graph has no cycles