void (TestNode[] allNodes, Map<TestNode, TestNode[]> map) { Graph<TestNode> graph = graphByNodes(allNodes, map); DFSTBuilder<TestNode> builder = new DFSTBuilder<>(graph); assertTrue(builder.getCircularDependency() != null); }