A simple program to find all cycles in a directed graph. Very inefficient.