447448449450451452453454455456457
Graph graph = gg.getGraph(); //test the graph for cycles CycleDetector cycleDetector = new DirectedCycleDetector(graph); if (cycleDetector.containsCycle()) { logger.info("Cycle found"); return null; }