public static void main(String[] args)
	{
		Digraph G = null;
		try
		{
			G = new Digraph(new In(args[0]));
			System.out.println(args[0] + "\n" + G);
		}
		catch (Exception e)
		{
			System.out.println(e);
			System.exit(1);
		}

		DirectedCycle cycleFinder = new DirectedCycle(G);
		if (cycleFinder.hasCycle())
		{
			System.out.println("Cycle found");
			for (int v : cycleFinder.cycle())
				System.out.print(v + " ");
			System.out.println();
		}

	}